Update copyparty.sh
This commit is contained in:
parent
01a797f7ff
commit
fdaa956eab
@ -164,32 +164,25 @@ fi
|
|||||||
|
|
||||||
# --- Generate /etc/copyparty.conf ---
|
# --- Generate /etc/copyparty.conf ---
|
||||||
msg_info "Writing config to $CONF_PATH"
|
msg_info "Writing config to $CONF_PATH"
|
||||||
cat <<EOF >"$CONF_PATH"
|
cat <<EOF >/etc/copyparty.conf
|
||||||
# CopyParty main config
|
[global]
|
||||||
# More options: https://github.com/9001/copyparty/blob/hovudstraum/contrib/systemd/copyparty.conf
|
p: $PORT
|
||||||
#
|
ansi
|
||||||
# storage
|
e2dsa
|
||||||
root = $USER_DATA_PATH
|
e2ts
|
||||||
|
theme: 2
|
||||||
|
grid
|
||||||
|
|
||||||
# HTTP port
|
[accounts]
|
||||||
port = $PORT
|
$ADMIN_USER: $ADMIN_PASS
|
||||||
|
|
||||||
# logs
|
|
||||||
logs = $LOG_PATH
|
|
||||||
|
|
||||||
# authentication
|
|
||||||
$AUTH_LINE
|
|
||||||
|
|
||||||
# allow upload
|
|
||||||
ul = *
|
|
||||||
|
|
||||||
# Example: allow delete
|
|
||||||
#dl = *
|
|
||||||
|
|
||||||
# basic web-ui
|
|
||||||
w = *
|
|
||||||
|
|
||||||
|
[/]
|
||||||
|
$USER_DATA_PATH
|
||||||
|
accs:
|
||||||
|
rw: *
|
||||||
|
rwmda: $ADMIN_USER
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod 640 "$CONF_PATH"
|
chmod 640 "$CONF_PATH"
|
||||||
chown "$SVC_USER:$SVC_GROUP" "$CONF_PATH"
|
chown "$SVC_USER:$SVC_GROUP" "$CONF_PATH"
|
||||||
msg_ok "Config written"
|
msg_ok "Config written"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user