Merge pull request #229 from nupplaphil/bug/fix-locking

Fix locking
This commit is contained in:
Philipp Holzer 2023-05-19 16:52:00 +02:00 committed by GitHub
commit bf37b7b6bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 30 additions and 20 deletions

View File

@ -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 "$@"

View File

@ -7,3 +7,4 @@
/storage/
/log/
*.log
/nextcloud-init-sync.lock

View File

@ -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 "$@"

View File

@ -7,3 +7,4 @@
/storage/
/log/
*.log
/nextcloud-init-sync.lock

View File

@ -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 "$@"

View File

@ -7,3 +7,4 @@
/storage/
/log/
*.log
/nextcloud-init-sync.lock

View File

@ -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 "$@"

View File

@ -7,3 +7,4 @@
/storage/
/log/
*.log
/nextcloud-init-sync.lock

View File

@ -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 "$@"

View File

@ -7,3 +7,4 @@
/storage/
/log/
*.log
/nextcloud-init-sync.lock

View File

@ -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 "$@"

View File

@ -7,3 +7,4 @@
/storage/
/log/
*.log
/nextcloud-init-sync.lock

View File

@ -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 "$@"

View File

@ -7,3 +7,4 @@
/storage/
/log/
*.log
/nextcloud-init-sync.lock

View File

@ -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 "$@"

View File

@ -7,3 +7,4 @@
/storage/
/log/
*.log
/nextcloud-init-sync.lock

View File

@ -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 "$@"

View File

@ -7,3 +7,4 @@
/storage/
/log/
*.log
/nextcloud-init-sync.lock

View File

@ -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 "$@"

View File

@ -7,3 +7,4 @@
/storage/
/log/
*.log
/friendica-init-sync.lock