From fdaa956eabdcd847e2c26311a8757c27cee12078 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 5 Aug 2025 15:28:37 +0200 Subject: [PATCH] Update copyparty.sh --- tools/addon/copyparty.sh | 39 ++++++++++++++++----------------------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/tools/addon/copyparty.sh b/tools/addon/copyparty.sh index d16a230d..79bd509f 100644 --- a/tools/addon/copyparty.sh +++ b/tools/addon/copyparty.sh @@ -164,32 +164,25 @@ fi # --- Generate /etc/copyparty.conf --- msg_info "Writing config to $CONF_PATH" -cat <"$CONF_PATH" -# CopyParty main config -# More options: https://github.com/9001/copyparty/blob/hovudstraum/contrib/systemd/copyparty.conf -# -# storage -root = $USER_DATA_PATH +cat </etc/copyparty.conf +[global] + p: $PORT + ansi + e2dsa + e2ts + theme: 2 + grid -# HTTP port -port = $PORT - -# logs -logs = $LOG_PATH - -# authentication -$AUTH_LINE - -# allow upload -ul = * - -# Example: allow delete -#dl = * - -# basic web-ui -w = * +[accounts] + $ADMIN_USER: $ADMIN_PASS +[/] + $USER_DATA_PATH + accs: + rw: * + rwmda: $ADMIN_USER EOF + chmod 640 "$CONF_PATH" chown "$SVC_USER:$SVC_GROUP" "$CONF_PATH" msg_ok "Config written"