mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-28 12:55:10 +02:00
fix(slskd): inline LOCK_FILE variable
This commit is contained in:
@@ -47,15 +47,13 @@ if [[ ${soularr,,} =~ ^(y|yes)$ ]]; then
|
||||
cat <<EOF >/opt/soularr/run.sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
LOCK_FILE="/opt/soularr/.soularr.lock"
|
||||
|
||||
if ps aux | grep "[s]oularr.py" >/dev/null; then
|
||||
echo "Soularr is already running. Exiting..." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Remove stale lock file from previous ungraceful exit
|
||||
rm -f "\$LOCK_FILE"
|
||||
rm -f "/opt/soularr/.soularr.lock"
|
||||
|
||||
source /opt/soularr/venv/bin/activate
|
||||
uv run python3 -u /opt/soularr/soularr.py --config-dir /opt/soularr 2>&1
|
||||
|
||||
Reference in New Issue
Block a user