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