mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-17 18:24:08 +00:00
Compare commits
3 Commits
pr-update-
...
update-cha
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28e6d1de21 | ||
|
|
26594e2189 | ||
|
|
1139420ea7 |
19
ct/romm.sh
19
ct/romm.sh
@@ -191,30 +191,11 @@ EOF
|
|||||||
sed -i -e "s|alias .*/library/;|alias ${ROMM_BASE}/library/;|" \
|
sed -i -e "s|alias .*/library/;|alias ${ROMM_BASE}/library/;|" \
|
||||||
-e "s|alias .*/cache/;|alias ${ROMM_BASE}/cache/;|" /etc/angie/http.d/romm.conf
|
-e "s|alias .*/cache/;|alias ${ROMM_BASE}/cache/;|" /etc/angie/http.d/romm.conf
|
||||||
fi
|
fi
|
||||||
cat <<'SYNCEOF' >/usr/local/bin/romm-sync-angie-paths
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
base="$(grep -m1 '^ROMM_BASE_PATH=' /opt/romm/.env 2>/dev/null | cut -d= -f2)"
|
|
||||||
base="${base:-/var/lib/romm}"
|
|
||||||
[[ -f /etc/angie/http.d/romm.conf ]] || exit 0
|
|
||||||
sed -i -e "s|alias .*/library/;|alias ${base}/library/;|" \
|
|
||||||
-e "s|alias .*/cache/;|alias ${base}/cache/;|" /etc/angie/http.d/romm.conf
|
|
||||||
SYNCEOF
|
|
||||||
chmod +x /usr/local/bin/romm-sync-angie-paths
|
|
||||||
mkdir -p /etc/systemd/system/angie.service.d
|
|
||||||
cat <<'DROPEOF' >/etc/systemd/system/angie.service.d/romm-paths.conf
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=/usr/local/bin/romm-sync-angie-paths
|
|
||||||
DROPEOF
|
|
||||||
systemctl daemon-reload
|
|
||||||
systemctl reload angie
|
systemctl reload angie
|
||||||
elif [[ -f /etc/nginx/sites-available/romm ]]; then
|
elif [[ -f /etc/nginx/sites-available/romm ]]; then
|
||||||
sed -i "s|alias .*/library/;|alias ${ROMM_BASE}/library/;|" /etc/nginx/sites-available/romm
|
sed -i "s|alias .*/library/;|alias ${ROMM_BASE}/library/;|" /etc/nginx/sites-available/romm
|
||||||
nginx_enable_site romm
|
nginx_enable_site romm
|
||||||
fi
|
fi
|
||||||
if [[ -f /etc/systemd/system/romm-watcher.service ]]; then
|
|
||||||
sed -i "s|\(watcher\.py' \).*|\1\${ROMM_BASE_PATH}/library|" /etc/systemd/system/romm-watcher.service
|
|
||||||
systemctl daemon-reload
|
|
||||||
fi
|
|
||||||
msg_ok "Updated ROMM"
|
msg_ok "Updated ROMM"
|
||||||
|
|
||||||
msg_info "Starting Services"
|
msg_info "Starting Services"
|
||||||
|
|||||||
@@ -327,22 +327,8 @@ server {
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat <<'SYNCEOF' >/usr/local/bin/romm-sync-angie-paths
|
sed -i -e "s|alias /var/lib/romm/library/;|alias ${ROMM_BASE}/library/;|" \
|
||||||
#!/usr/bin/env bash
|
-e "s|alias /var/lib/romm/cache/;|alias ${ROMM_BASE}/cache/;|" /etc/angie/http.d/romm.conf
|
||||||
base="$(grep -m1 '^ROMM_BASE_PATH=' /opt/romm/.env 2>/dev/null | cut -d= -f2)"
|
|
||||||
base="${base:-/var/lib/romm}"
|
|
||||||
[[ -f /etc/angie/http.d/romm.conf ]] || exit 0
|
|
||||||
sed -i -e "s|alias .*/library/;|alias ${base}/library/;|" \
|
|
||||||
-e "s|alias .*/cache/;|alias ${base}/cache/;|" /etc/angie/http.d/romm.conf
|
|
||||||
SYNCEOF
|
|
||||||
chmod +x /usr/local/bin/romm-sync-angie-paths
|
|
||||||
mkdir -p /etc/systemd/system/angie.service.d
|
|
||||||
cat <<'EOF' >/etc/systemd/system/angie.service.d/romm-paths.conf
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=/usr/local/bin/romm-sync-angie-paths
|
|
||||||
EOF
|
|
||||||
systemctl daemon-reload
|
|
||||||
/usr/local/bin/romm-sync-angie-paths
|
|
||||||
rm -f /etc/angie/http.d/default.conf
|
rm -f /etc/angie/http.d/default.conf
|
||||||
systemctl restart angie
|
systemctl restart angie
|
||||||
systemctl enable -q --now angie
|
systemctl enable -q --now angie
|
||||||
@@ -419,7 +405,7 @@ Type=simple
|
|||||||
WorkingDirectory=/opt/romm/backend
|
WorkingDirectory=/opt/romm/backend
|
||||||
EnvironmentFile=/opt/romm/.env
|
EnvironmentFile=/opt/romm/.env
|
||||||
Environment="PYTHONPATH=/opt/romm/backend"
|
Environment="PYTHONPATH=/opt/romm/backend"
|
||||||
ExecStart=/opt/romm/.venv/bin/watchfiles --target-type command '/opt/romm/.venv/bin/python watcher.py' \${ROMM_BASE_PATH}/library
|
ExecStart=/opt/romm/.venv/bin/watchfiles --target-type command '/opt/romm/.venv/bin/python watcher.py' /var/lib/romm/library
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
___ __ _
|
|
||||||
/ | / /___ (_)___ ___
|
|
||||||
/ /| | / / __ \/ / __ \/ _ \
|
|
||||||
/ ___ |/ / /_/ / / / / / __/
|
|
||||||
/_/ |_/_/ .___/_/_/ /_/\___/
|
|
||||||
/_/
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
____ __ _
|
|
||||||
/ __ \___ / /_ (_)___ _____
|
|
||||||
/ / / / _ \/ __ \/ / __ `/ __ \
|
|
||||||
/ /_/ / __/ /_/ / / /_/ / / / /
|
|
||||||
/_____/\___/_.___/_/\__,_/_/ /_/
|
|
||||||
|
|
||||||
____ __ _ __ __ _ _
|
|
||||||
/ __ \___ / /_ (_)___ _____ _/ / _/_/ ______ _______ _____ __________(_)___ ____ | |
|
|
||||||
/ / / / _ \/ __ \/ / __ `/ __ \ / __//_/| | / / __ `/ ___/ | / / _ \/ ___/ ___/ / __ \/ __ \ / /
|
|
||||||
/ /_/ / __/ /_/ / / /_/ / / / / (_ < < | |/ / /_/ / / | |/ / __/ / (__ ) / /_/ / / / /_>_>
|
|
||||||
/_____/\___/_.___/_/\__,_/_/ /_/ / _// / |___/\__,_/_/____|___/\___/_/ /____/_/\____/_/ /_//_/
|
|
||||||
/_/ \_\ /_____/ /_/
|
|
||||||
Reference in New Issue
Block a user