From 6a8e32e48d677750a785caab9f45e7ee5392764c Mon Sep 17 00:00:00 2001 From: Anton Afanasyeu Date: Tue, 26 May 2026 17:25:48 +0300 Subject: [PATCH] y 6 --- deploy_alpine.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/deploy_alpine.sh b/deploy_alpine.sh index 64c0039..9abe755 100755 --- a/deploy_alpine.sh +++ b/deploy_alpine.sh @@ -1,6 +1,14 @@ #!/bin/sh BRANCH=${BRANCH:-next} CLEAN=${CLEAN:-yes} +DRY=${DRY:-no} +just_reload() { +sudo -E /etc/init.d/mariadb restart; sudo -E /etc/init.d/php-fpm81 restart; sudo -E /etc/init.d/nginx restart; sudo -E /etc/init.d/gitea restart; +} +if [ "yes" = "${DRY}" ]; then + just_reload + exit $? +fi git fetch --all --tags || exit $? cp -f $0 /tmp/$0.backup || exit $? git reset --hard || exit $? @@ -19,4 +27,4 @@ if [ ! -f "./examples/crash_reporter/backend/config/config.php.alpine" ]; then ## patch config if needed fi cp -f ./examples/crash_reporter/backend/config/config.php.alpine ./examples/crash_reporter/backend/config/config.php || exit $? -sudo -E /etc/init.d/mariadb restart; sudo -E /etc/init.d/php-fpm81 restart; sudo -E /etc/init.d/nginx restart; sudo -E /etc/init.d/gitea restart; +just_reload