From 54934da806433ca89f80d595a23875acf91dfbea Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 18 Aug 2025 12:06:14 +0200 Subject: [PATCH] Update copyparty.sh --- tools/addon/copyparty.sh | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/tools/addon/copyparty.sh b/tools/addon/copyparty.sh index 897ad753..98f7ad72 100644 --- a/tools/addon/copyparty.sh +++ b/tools/addon/copyparty.sh @@ -189,7 +189,28 @@ chown "$SVC_USER:$SVC_GROUP" "$CONF_PATH" msg_ok "Config written" msg_info "Creating service" -if [[ "$OS" == "Alpine" ]]; then +if [[ "$OS" == "Debian" ]]; then + cat <"$SERVICE_PATH_DEB" +[Unit] +Description=Copyparty file server +After=network.target + +[Service] +User=$SVC_USER +Group=$SVC_GROUP +WorkingDirectory=$DATA_PATH +ExecStart=/usr/bin/python3 /usr/local/bin/copyparty-sfx.py -c /etc/copyparty.conf +Restart=always +StandardOutput=append:/var/log/copyparty/copyparty.log +StandardError=append:/var/log/copyparty/copyparty.err + +[Install] +WantedBy=multi-user.target +EOF + + systemctl enable -q --now copyparty + +elif [[ "$OS" == "Alpine" ]]; then cat <<'EOF' >"$SERVICE_PATH_ALP" #!/sbin/openrc-run