2 Commits

Author SHA1 Message Date
arian 2e68ad7323 v0.1.0-2 changelog 2026-04-14 12:14:13 -04:00
arian 792465dab2 run deb package pip install stage as navidrome-uploader user instead of root 2026-04-14 12:09:54 -04:00
2 changed files with 20 additions and 10 deletions
+6
View File
@@ -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
+14 -10
View File
@@ -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