mirror of
https://github.com/nextcloud/docker.git
synced 2024-11-06 06:14:57 +01:00
Runs update.sh
This commit is contained in:
parent
7a89d751ca
commit
4f071a6f44
6 changed files with 36 additions and 6 deletions
|
@ -106,15 +106,20 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
|
||||||
# it to be done, then escape initalization
|
# it to be done, then escape initalization
|
||||||
lock=/var/www/html/nextcloud-init-sync.lock
|
lock=/var/www/html/nextcloud-init-sync.lock
|
||||||
count=0
|
count=0
|
||||||
|
limit=10
|
||||||
|
|
||||||
if [ -f "$lock" ]; then
|
if [ -f "$lock" ]; then
|
||||||
until [ ! -f "$lock" ]
|
until [ ! -f "$lock" ] || [ "$count" -gt "$limit" ]
|
||||||
do
|
do
|
||||||
count=$((count+1))
|
count=$((count+1))
|
||||||
wait=$((count*10))
|
wait=$((count*10))
|
||||||
echo "Another process is initializing Nextcloud. Waiting $wait seconds..."
|
echo "Another process is initializing Nextcloud. Waiting $wait seconds..."
|
||||||
sleep $wait
|
sleep $wait
|
||||||
done
|
done
|
||||||
|
if [ "$count" -gt "$limit" ]; then
|
||||||
|
echo "Timeout while waiting for an ongoing initialization"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
echo "The other process is done, assuming complete initialization"
|
echo "The other process is done, assuming complete initialization"
|
||||||
else
|
else
|
||||||
# Prevent multiple images syncing simultaneously
|
# Prevent multiple images syncing simultaneously
|
||||||
|
|
|
@ -106,15 +106,20 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
|
||||||
# it to be done, then escape initalization
|
# it to be done, then escape initalization
|
||||||
lock=/var/www/html/nextcloud-init-sync.lock
|
lock=/var/www/html/nextcloud-init-sync.lock
|
||||||
count=0
|
count=0
|
||||||
|
limit=10
|
||||||
|
|
||||||
if [ -f "$lock" ]; then
|
if [ -f "$lock" ]; then
|
||||||
until [ ! -f "$lock" ]
|
until [ ! -f "$lock" ] || [ "$count" -gt "$limit" ]
|
||||||
do
|
do
|
||||||
count=$((count+1))
|
count=$((count+1))
|
||||||
wait=$((count*10))
|
wait=$((count*10))
|
||||||
echo "Another process is initializing Nextcloud. Waiting $wait seconds..."
|
echo "Another process is initializing Nextcloud. Waiting $wait seconds..."
|
||||||
sleep $wait
|
sleep $wait
|
||||||
done
|
done
|
||||||
|
if [ "$count" -gt "$limit" ]; then
|
||||||
|
echo "Timeout while waiting for an ongoing initialization"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
echo "The other process is done, assuming complete initialization"
|
echo "The other process is done, assuming complete initialization"
|
||||||
else
|
else
|
||||||
# Prevent multiple images syncing simultaneously
|
# Prevent multiple images syncing simultaneously
|
||||||
|
|
|
@ -106,15 +106,20 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
|
||||||
# it to be done, then escape initalization
|
# it to be done, then escape initalization
|
||||||
lock=/var/www/html/nextcloud-init-sync.lock
|
lock=/var/www/html/nextcloud-init-sync.lock
|
||||||
count=0
|
count=0
|
||||||
|
limit=10
|
||||||
|
|
||||||
if [ -f "$lock" ]; then
|
if [ -f "$lock" ]; then
|
||||||
until [ ! -f "$lock" ]
|
until [ ! -f "$lock" ] || [ "$count" -gt "$limit" ]
|
||||||
do
|
do
|
||||||
count=$((count+1))
|
count=$((count+1))
|
||||||
wait=$((count*10))
|
wait=$((count*10))
|
||||||
echo "Another process is initializing Nextcloud. Waiting $wait seconds..."
|
echo "Another process is initializing Nextcloud. Waiting $wait seconds..."
|
||||||
sleep $wait
|
sleep $wait
|
||||||
done
|
done
|
||||||
|
if [ "$count" -gt "$limit" ]; then
|
||||||
|
echo "Timeout while waiting for an ongoing initialization"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
echo "The other process is done, assuming complete initialization"
|
echo "The other process is done, assuming complete initialization"
|
||||||
else
|
else
|
||||||
# Prevent multiple images syncing simultaneously
|
# Prevent multiple images syncing simultaneously
|
||||||
|
|
|
@ -106,15 +106,20 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
|
||||||
# it to be done, then escape initalization
|
# it to be done, then escape initalization
|
||||||
lock=/var/www/html/nextcloud-init-sync.lock
|
lock=/var/www/html/nextcloud-init-sync.lock
|
||||||
count=0
|
count=0
|
||||||
|
limit=10
|
||||||
|
|
||||||
if [ -f "$lock" ]; then
|
if [ -f "$lock" ]; then
|
||||||
until [ ! -f "$lock" ]
|
until [ ! -f "$lock" ] || [ "$count" -gt "$limit" ]
|
||||||
do
|
do
|
||||||
count=$((count+1))
|
count=$((count+1))
|
||||||
wait=$((count*10))
|
wait=$((count*10))
|
||||||
echo "Another process is initializing Nextcloud. Waiting $wait seconds..."
|
echo "Another process is initializing Nextcloud. Waiting $wait seconds..."
|
||||||
sleep $wait
|
sleep $wait
|
||||||
done
|
done
|
||||||
|
if [ "$count" -gt "$limit" ]; then
|
||||||
|
echo "Timeout while waiting for an ongoing initialization"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
echo "The other process is done, assuming complete initialization"
|
echo "The other process is done, assuming complete initialization"
|
||||||
else
|
else
|
||||||
# Prevent multiple images syncing simultaneously
|
# Prevent multiple images syncing simultaneously
|
||||||
|
|
|
@ -106,15 +106,20 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
|
||||||
# it to be done, then escape initalization
|
# it to be done, then escape initalization
|
||||||
lock=/var/www/html/nextcloud-init-sync.lock
|
lock=/var/www/html/nextcloud-init-sync.lock
|
||||||
count=0
|
count=0
|
||||||
|
limit=10
|
||||||
|
|
||||||
if [ -f "$lock" ]; then
|
if [ -f "$lock" ]; then
|
||||||
until [ ! -f "$lock" ]
|
until [ ! -f "$lock" ] || [ "$count" -gt "$limit" ]
|
||||||
do
|
do
|
||||||
count=$((count+1))
|
count=$((count+1))
|
||||||
wait=$((count*10))
|
wait=$((count*10))
|
||||||
echo "Another process is initializing Nextcloud. Waiting $wait seconds..."
|
echo "Another process is initializing Nextcloud. Waiting $wait seconds..."
|
||||||
sleep $wait
|
sleep $wait
|
||||||
done
|
done
|
||||||
|
if [ "$count" -gt "$limit" ]; then
|
||||||
|
echo "Timeout while waiting for an ongoing initialization"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
echo "The other process is done, assuming complete initialization"
|
echo "The other process is done, assuming complete initialization"
|
||||||
else
|
else
|
||||||
# Prevent multiple images syncing simultaneously
|
# Prevent multiple images syncing simultaneously
|
||||||
|
|
|
@ -106,15 +106,20 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
|
||||||
# it to be done, then escape initalization
|
# it to be done, then escape initalization
|
||||||
lock=/var/www/html/nextcloud-init-sync.lock
|
lock=/var/www/html/nextcloud-init-sync.lock
|
||||||
count=0
|
count=0
|
||||||
|
limit=10
|
||||||
|
|
||||||
if [ -f "$lock" ]; then
|
if [ -f "$lock" ]; then
|
||||||
until [ ! -f "$lock" ]
|
until [ ! -f "$lock" ] || [ "$count" -gt "$limit" ]
|
||||||
do
|
do
|
||||||
count=$((count+1))
|
count=$((count+1))
|
||||||
wait=$((count*10))
|
wait=$((count*10))
|
||||||
echo "Another process is initializing Nextcloud. Waiting $wait seconds..."
|
echo "Another process is initializing Nextcloud. Waiting $wait seconds..."
|
||||||
sleep $wait
|
sleep $wait
|
||||||
done
|
done
|
||||||
|
if [ "$count" -gt "$limit" ]; then
|
||||||
|
echo "Timeout while waiting for an ongoing initialization"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
echo "The other process is done, assuming complete initialization"
|
echo "The other process is done, assuming complete initialization"
|
||||||
else
|
else
|
||||||
# Prevent multiple images syncing simultaneously
|
# Prevent multiple images syncing simultaneously
|
||||||
|
|
Loading…
Reference in a new issue