make update script failproof

This commit is contained in:
Daniel Hansson 2020-05-13 21:33:52 +02:00 committed by GitHub
parent c7d5807659
commit 963f802e3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,9 +43,15 @@ case "$choice" in
fi
;;
"Update Nextcloud")
if network_ok
if [ -f $SCRIPTS/update.sh ]
then
run_static_script update
bash $SCRIPTS/update.sh
else
if network_ok
then
download_static_script update
bash $SCRIPTS/update.sh
fi
fi
;;
*)