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
+7 -3
View File
@@ -3,12 +3,15 @@ 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" runuser -u "$APP_USER" -- python3 -m venv "$VENV_DIR"
runuser -u "$APP_USER" -- "$VENV_DIR/bin/pip" install --no-cache-dir --upgrade pip
runuser -u "$APP_USER" -- "$VENV_DIR/bin/pip" install --no-cache-dir -r "$APP_DIR/requirements.txt"
if command -v systemctl >/dev/null 2>&1; then if command -v systemctl >/dev/null 2>&1; then
systemctl daemon-reload || true systemctl daemon-reload || true
@@ -20,3 +23,4 @@ esac
exit 0 exit 0