Initial commit — ProxMorph with TheRaiwy Dark cyber theme

This commit is contained in:
TheRaiwy
2026-07-03 11:39:33 +03:00
commit 0482744090
62 changed files with 65519 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
# Patch proxmoxlib.js to add UniFi theme
FILE="/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js"
# Check if already patched
if grep -q "unifi" "$FILE"; then
echo "Already patched!"
else
# Use awk for multi-line insert
awk '/theme_map: \{/ { print; print " '\''unifi'\'': '\''UniFi'\'',"; next }1' "$FILE" > /tmp/proxmoxlib.js.new
mv /tmp/proxmoxlib.js.new "$FILE"
echo "Patched!"
fi
# Restart pveproxy
systemctl restart pveproxy
echo "pveproxy restarted"
echo "Current theme_map:"
grep -A6 "theme_map:" "$FILE"