update_nextcloud.sh: start the cronjon manually only on demand.
This commit is contained in:
parent
b5a0204dec
commit
a9fb3067df
@ -1422,6 +1422,20 @@ else
|
||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
fi
|
||||
|
||||
|
||||
echo ""
|
||||
echo " Would you like to run the cronjob manually - it may take a realy long time! "
|
||||
echo ""
|
||||
echononl " Run cronjob manually [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
done
|
||||
if [[ $OK = "yes" ]] ; then
|
||||
|
||||
echononl " Run cronjob manually.. (can take a very long time)"
|
||||
echo_wait
|
||||
su -c "${PHP_BIN} ${WEB_BASE_DIR}/htdocs/cron.php" -s /bin/bash $HTTP_USER > $log_file 2>&1
|
||||
@ -1441,6 +1455,7 @@ else
|
||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
blank_line
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user