Skip to content

Commit 75e1b80

Browse files
authored
Fix: Retry logic in entrypoint.sh for Nextcloud installation (#2256)
* issue Fix #1911 Signed-off-by: Aakash788 <[email protected]> * Fixed issue #1708 Signed-off-by: Aakash788 <[email protected]> --------- Signed-off-by: Aakash788 <[email protected]>
1 parent 95c4929 commit 75e1b80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
225225
echo "Starting nextcloud installation"
226226
max_retries=10
227227
try=0
228-
until run_as "php /var/www/html/occ maintenance:install $install_options" || [ "$try" -gt "$max_retries" ]
228+
until [ "$try" -gt "$max_retries" ] || run_as "php /var/www/html/occ maintenance:install $install_options"
229229
do
230230
echo "Retrying install..."
231231
try=$((try+1))

0 commit comments

Comments
 (0)