mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
don't ask for confirmation
This commit is contained in:
parent
98be946861
commit
862e95d9e8
@ -47,19 +47,14 @@ case "$choice" in
|
||||
"Update Nextcloud major")
|
||||
if [ -f "$SCRIPTS"/update.sh ]
|
||||
then
|
||||
if yesno_box_yes "Do you want to fetch the latest update.sh script?"
|
||||
then
|
||||
print_text_in_color "$ICyan" "Removing the old script..."
|
||||
rm -f "$SCRIPTS"/update.sh
|
||||
print_text_in_color "$ICyan" "Downloading the Update script..."
|
||||
download_script STATIC update
|
||||
chmod +x "$SCRIPTS"/update.sh
|
||||
bash "$SCRIPTS"/update.sh
|
||||
else
|
||||
bash "$SCRIPTS"/update.sh
|
||||
fi
|
||||
print_text_in_color "$ICyan" "Removing the old script..."
|
||||
rm -f "$SCRIPTS"/update.sh
|
||||
print_text_in_color "$ICyan" "Downloading the latest update script..."
|
||||
download_script STATIC update
|
||||
chmod +x "$SCRIPTS"/update.sh
|
||||
bash "$SCRIPTS"/update.sh
|
||||
else
|
||||
print_text_in_color "$ICyan" "Downloading the Update script..."
|
||||
print_text_in_color "$ICyan" "Downloading the latest update script..."
|
||||
download_script STATIC update
|
||||
chmod +x "$SCRIPTS"/update.sh
|
||||
bash "$SCRIPTS"/update.sh
|
||||
@ -68,22 +63,17 @@ case "$choice" in
|
||||
"Update Nextcloud minor")
|
||||
if [ -f "$SCRIPTS"/update.sh ]
|
||||
then
|
||||
if yesno_box_yes "Do you want to fetch the latest update.sh script?"
|
||||
then
|
||||
print_text_in_color "$ICyan" "Removing the old script..."
|
||||
rm -f "$SCRIPTS"/update.sh
|
||||
print_text_in_color "$ICyan" "Downloading the Update script..."
|
||||
download_script STATIC update
|
||||
chmod +x "$SCRIPTS"/update.sh
|
||||
bash "$SCRIPTS"/update.sh minor
|
||||
else
|
||||
bash "$SCRIPTS"/update.sh minor
|
||||
fi
|
||||
else
|
||||
print_text_in_color "$ICyan" "Removing the old script..."
|
||||
rm -f "$SCRIPTS"/update.sh
|
||||
print_text_in_color "$ICyan" "Downloading the Update script..."
|
||||
download_script STATIC update
|
||||
chmod +x "$SCRIPTS"/update.sh
|
||||
bash "$SCRIPTS"/update.sh minor
|
||||
else
|
||||
print_text_in_color "$ICyan" "Downloading the latest update script..."
|
||||
download_script STATIC update
|
||||
chmod +x "$SCRIPTS"/update.sh
|
||||
bash "$SCRIPTS"/update.sh minor
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user