Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
2e68ad7323
|
|||
|
792465dab2
|
Vendored
+6
@@ -1,3 +1,9 @@
|
|||||||
|
navidrome-uploader (0.1.0-2) unstable; urgency=high
|
||||||
|
|
||||||
|
* Run pip install stage as navidrome-uploader user instead of root
|
||||||
|
|
||||||
|
-- Arian Nasr <arian@2ari.ca> Tue, 14 Apr 2026 12:11:00 -0400
|
||||||
|
|
||||||
navidrome-uploader (0.1.0-1) unstable; urgency=medium
|
navidrome-uploader (0.1.0-1) unstable; urgency=medium
|
||||||
|
|
||||||
* Disable gunicorn control socket in systemd service unit
|
* Disable gunicorn control socket in systemd service unit
|
||||||
|
|||||||
Vendored
+14
-10
@@ -3,20 +3,24 @@ set -e
|
|||||||
|
|
||||||
APP_DIR="/opt/navidrome-uploader"
|
APP_DIR="/opt/navidrome-uploader"
|
||||||
VENV_DIR="${APP_DIR}/venv"
|
VENV_DIR="${APP_DIR}/venv"
|
||||||
|
APP_USER="navidrome-uploader"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
python3 -m venv "${VENV_DIR}"
|
chown -R "$APP_USER:$APP_USER" "$APP_DIR"
|
||||||
"${VENV_DIR}/bin/pip" install --no-cache-dir --upgrade pip
|
|
||||||
"${VENV_DIR}/bin/pip" install --no-cache-dir -r "${APP_DIR}/requirements.txt"
|
|
||||||
|
|
||||||
if command -v systemctl > /dev/null 2>&1; then
|
runuser -u "$APP_USER" -- python3 -m venv "$VENV_DIR"
|
||||||
systemctl daemon-reload || true
|
runuser -u "$APP_USER" -- "$VENV_DIR/bin/pip" install --no-cache-dir --upgrade pip
|
||||||
systemctl enable navidrome-uploader.service || true
|
runuser -u "$APP_USER" -- "$VENV_DIR/bin/pip" install --no-cache-dir -r "$APP_DIR/requirements.txt"
|
||||||
systemctl restart navidrome-uploader.service || true
|
|
||||||
fi
|
if command -v systemctl >/dev/null 2>&1; then
|
||||||
;;
|
systemctl daemon-reload || true
|
||||||
|
systemctl enable navidrome-uploader.service || true
|
||||||
|
systemctl restart navidrome-uploader.service || true
|
||||||
|
fi
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user