mirror of
https://github.com/friendica/docker
synced 2025-01-20 22:00:02 +01:00
Fix locking
This commit is contained in:
parent
7dbded3edd
commit
e9d8daaccf
20 changed files with 30 additions and 20 deletions
|
@ -74,7 +74,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
(
|
||||
if ! flock -n 9; then
|
||||
# If we couldn't get it immediately, show a message, then wait for real
|
||||
echo "Another process is initializing Nextcloud. Waiting..."
|
||||
echo "Another process is initializing Friendica. Waiting..."
|
||||
flock 9
|
||||
fi
|
||||
|
||||
|
@ -179,7 +179,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
echo "Upgrading finished"
|
||||
fi
|
||||
fi
|
||||
) 9> /var/www/html/nextcloud-init-sync.lock
|
||||
) 9> /var/www/html/friendica-init-sync.lock
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
|
|
@ -7,3 +7,4 @@
|
|||
/storage/
|
||||
/log/
|
||||
*.log
|
||||
/nextcloud-init-sync.lock
|
||||
|
|
|
@ -74,7 +74,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
(
|
||||
if ! flock -n 9; then
|
||||
# If we couldn't get it immediately, show a message, then wait for real
|
||||
echo "Another process is initializing Nextcloud. Waiting..."
|
||||
echo "Another process is initializing Friendica. Waiting..."
|
||||
flock 9
|
||||
fi
|
||||
|
||||
|
@ -179,7 +179,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
echo "Upgrading finished"
|
||||
fi
|
||||
fi
|
||||
) 9> /var/www/html/nextcloud-init-sync.lock
|
||||
) 9> /var/www/html/friendica-init-sync.lock
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
|
|
@ -7,3 +7,4 @@
|
|||
/storage/
|
||||
/log/
|
||||
*.log
|
||||
/nextcloud-init-sync.lock
|
||||
|
|
|
@ -74,7 +74,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
(
|
||||
if ! flock -n 9; then
|
||||
# If we couldn't get it immediately, show a message, then wait for real
|
||||
echo "Another process is initializing Nextcloud. Waiting..."
|
||||
echo "Another process is initializing Friendica. Waiting..."
|
||||
flock 9
|
||||
fi
|
||||
|
||||
|
@ -179,7 +179,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
echo "Upgrading finished"
|
||||
fi
|
||||
fi
|
||||
) 9> /var/www/html/nextcloud-init-sync.lock
|
||||
) 9> /var/www/html/friendica-init-sync.lock
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
|
|
@ -7,3 +7,4 @@
|
|||
/storage/
|
||||
/log/
|
||||
*.log
|
||||
/nextcloud-init-sync.lock
|
||||
|
|
|
@ -74,7 +74,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
(
|
||||
if ! flock -n 9; then
|
||||
# If we couldn't get it immediately, show a message, then wait for real
|
||||
echo "Another process is initializing Nextcloud. Waiting..."
|
||||
echo "Another process is initializing Friendica. Waiting..."
|
||||
flock 9
|
||||
fi
|
||||
|
||||
|
@ -179,7 +179,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
echo "Upgrading finished"
|
||||
fi
|
||||
fi
|
||||
) 9> /var/www/html/nextcloud-init-sync.lock
|
||||
) 9> /var/www/html/friendica-init-sync.lock
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
|
|
@ -7,3 +7,4 @@
|
|||
/storage/
|
||||
/log/
|
||||
*.log
|
||||
/nextcloud-init-sync.lock
|
||||
|
|
|
@ -74,7 +74,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
(
|
||||
if ! flock -n 9; then
|
||||
# If we couldn't get it immediately, show a message, then wait for real
|
||||
echo "Another process is initializing Nextcloud. Waiting..."
|
||||
echo "Another process is initializing Friendica. Waiting..."
|
||||
flock 9
|
||||
fi
|
||||
|
||||
|
@ -179,7 +179,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
echo "Upgrading finished"
|
||||
fi
|
||||
fi
|
||||
) 9> /var/www/html/nextcloud-init-sync.lock
|
||||
) 9> /var/www/html/friendica-init-sync.lock
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
|
|
@ -7,3 +7,4 @@
|
|||
/storage/
|
||||
/log/
|
||||
*.log
|
||||
/nextcloud-init-sync.lock
|
||||
|
|
|
@ -74,7 +74,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
(
|
||||
if ! flock -n 9; then
|
||||
# If we couldn't get it immediately, show a message, then wait for real
|
||||
echo "Another process is initializing Nextcloud. Waiting..."
|
||||
echo "Another process is initializing Friendica. Waiting..."
|
||||
flock 9
|
||||
fi
|
||||
|
||||
|
@ -179,7 +179,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
echo "Upgrading finished"
|
||||
fi
|
||||
fi
|
||||
) 9> /var/www/html/nextcloud-init-sync.lock
|
||||
) 9> /var/www/html/friendica-init-sync.lock
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
|
|
@ -7,3 +7,4 @@
|
|||
/storage/
|
||||
/log/
|
||||
*.log
|
||||
/nextcloud-init-sync.lock
|
||||
|
|
|
@ -74,7 +74,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
(
|
||||
if ! flock -n 9; then
|
||||
# If we couldn't get it immediately, show a message, then wait for real
|
||||
echo "Another process is initializing Nextcloud. Waiting..."
|
||||
echo "Another process is initializing Friendica. Waiting..."
|
||||
flock 9
|
||||
fi
|
||||
|
||||
|
@ -179,7 +179,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
echo "Upgrading finished"
|
||||
fi
|
||||
fi
|
||||
) 9> /var/www/html/nextcloud-init-sync.lock
|
||||
) 9> /var/www/html/friendica-init-sync.lock
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
|
|
@ -7,3 +7,4 @@
|
|||
/storage/
|
||||
/log/
|
||||
*.log
|
||||
/nextcloud-init-sync.lock
|
||||
|
|
|
@ -74,7 +74,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
(
|
||||
if ! flock -n 9; then
|
||||
# If we couldn't get it immediately, show a message, then wait for real
|
||||
echo "Another process is initializing Nextcloud. Waiting..."
|
||||
echo "Another process is initializing Friendica. Waiting..."
|
||||
flock 9
|
||||
fi
|
||||
|
||||
|
@ -179,7 +179,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
echo "Upgrading finished"
|
||||
fi
|
||||
fi
|
||||
) 9> /var/www/html/nextcloud-init-sync.lock
|
||||
) 9> /var/www/html/friendica-init-sync.lock
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
|
|
@ -7,3 +7,4 @@
|
|||
/storage/
|
||||
/log/
|
||||
*.log
|
||||
/nextcloud-init-sync.lock
|
||||
|
|
|
@ -74,7 +74,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
(
|
||||
if ! flock -n 9; then
|
||||
# If we couldn't get it immediately, show a message, then wait for real
|
||||
echo "Another process is initializing Nextcloud. Waiting..."
|
||||
echo "Another process is initializing Friendica. Waiting..."
|
||||
flock 9
|
||||
fi
|
||||
|
||||
|
@ -179,7 +179,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
echo "Upgrading finished"
|
||||
fi
|
||||
fi
|
||||
) 9> /var/www/html/nextcloud-init-sync.lock
|
||||
) 9> /var/www/html/friendica-init-sync.lock
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
|
|
@ -7,3 +7,4 @@
|
|||
/storage/
|
||||
/log/
|
||||
*.log
|
||||
/nextcloud-init-sync.lock
|
||||
|
|
|
@ -74,7 +74,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
(
|
||||
if ! flock -n 9; then
|
||||
# If we couldn't get it immediately, show a message, then wait for real
|
||||
echo "Another process is initializing Nextcloud. Waiting..."
|
||||
echo "Another process is initializing Friendica. Waiting..."
|
||||
flock 9
|
||||
fi
|
||||
|
||||
|
@ -179,7 +179,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
echo "Upgrading finished"
|
||||
fi
|
||||
fi
|
||||
) 9> /var/www/html/nextcloud-init-sync.lock
|
||||
) 9> /var/www/html/friendica-init-sync.lock
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
|
|
@ -7,3 +7,4 @@
|
|||
/storage/
|
||||
/log/
|
||||
*.log
|
||||
/friendica-init-sync.lock
|
||||
|
|
Loading…
Reference in a new issue