deb build framework

This commit is contained in:
2026-04-07 02:43:39 -04:00
parent 8cdacba0d6
commit d0fe37033c
12 changed files with 142 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
set -e
APP_DIR="/opt/navidrome-uploader"
VENV_DIR="${APP_DIR}/venv"
case "$1" in
configure)
python3 -m venv "${VENV_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
systemctl daemon-reload || true
systemctl enable navidrome-uploader.service || true
systemctl restart navidrome-uploader.service || true
fi
;;
esac
exit 0