@ -76,3 +76,9 @@ uid=$(docker_get_uid "$MASTER_BASE_SERVICE_NAME" "www-data")
dirs=("$SERVICE_DATASTORE/var/lib/nextcloud/data" "$SERVICE_DATASTORE/var/www/html")
mkdir -p "${dirs[@]}"
chown -R "$uid" "${dirs[@]}"
nextcloud:config:simple:add skeletondirectory empty || {
err "Failed to set ${WHITE}skeletondirectory${NORMAL} as empty."
exit 1
}
@ -154,6 +154,11 @@ nextcloud:config:simple:add() {
err "Value for '$key' is empty. Skipping."
return 1
fi
if [ "$value" == "empty" ]; then
value=""
## check for \ and ' in value and key
if [[ "$value" =~ [\\\'] ]]; then
err "Unsupported value for '$key' contains a backslash or a single quote."