deb build framework
This commit is contained in:
Vendored
+22
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user