skip user setup if provisioning (#2702)

Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
This commit is contained in:
Daniel Hansson
2024-11-13 18:34:35 +01:00
committed by GitHub
parent 0a5ec23921
commit 2c0e0b04be

View File

@ -511,8 +511,10 @@ download_script STATIC setup_secure_permissions_nextcloud
bash "$SECURE" & spinner_loading
# Ask to set a custom username
if yesno_box_no "Nextcloud is about to be installed.\nDo you want to change the standard GUI user '$GUIUSER' to something else?"
if [ -z "$PROVISIONING" ]
then
if yesno_box_no "Nextcloud is about to be installed.\nDo you want to change the standard GUI user '$GUIUSER' to something else?"
then
while :
do
GUIUSER=$(input_box_flow "Please type in the name of the Web Admin in Nextcloud.
@ -546,7 +548,7 @@ This is used when you login to Nextcloud itself, i.e. on the web."
break
fi
done
fi
fi
# Install Nextcloud