mirror of
https://github.com/nextcloud/docker.git
synced 2025-02-03 10:08:26 +01:00
Fix: Retry logic in entrypoint.sh for Nextcloud installation (#2256)
* issue Fix #1911 Signed-off-by: Aakash788 <aakashparmar788@gmail.com> * Fixed issue #1708 Signed-off-by: Aakash788 <aakashparmar788@gmail.com> --------- Signed-off-by: Aakash788 <aakashparmar788@gmail.com>
This commit is contained in:
parent
95c4929210
commit
75e1b80ba4
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
|
||||||
echo "Starting nextcloud installation"
|
echo "Starting nextcloud installation"
|
||||||
max_retries=10
|
max_retries=10
|
||||||
try=0
|
try=0
|
||||||
until run_as "php /var/www/html/occ maintenance:install $install_options" || [ "$try" -gt "$max_retries" ]
|
until [ "$try" -gt "$max_retries" ] || run_as "php /var/www/html/occ maintenance:install $install_options"
|
||||||
do
|
do
|
||||||
echo "Retrying install..."
|
echo "Retrying install..."
|
||||||
try=$((try+1))
|
try=$((try+1))
|
||||||
|
|
Loading…
Reference in a new issue