1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 05:58:14 +03:00
This commit is contained in:
Anton Afanasyeu
2026-05-26 17:25:48 +03:00
parent 06e512ce5e
commit 6a8e32e48d

View File

@@ -1,6 +1,14 @@
#!/bin/sh #!/bin/sh
BRANCH=${BRANCH:-next} BRANCH=${BRANCH:-next}
CLEAN=${CLEAN:-yes} 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 $? git fetch --all --tags || exit $?
cp -f $0 /tmp/$0.backup || exit $? cp -f $0 /tmp/$0.backup || exit $?
git reset --hard || exit $? git reset --hard || exit $?
@@ -19,4 +27,4 @@ if [ ! -f "./examples/crash_reporter/backend/config/config.php.alpine" ]; then
## patch config if needed ## patch config if needed
fi fi
cp -f ./examples/crash_reporter/backend/config/config.php.alpine ./examples/crash_reporter/backend/config/config.php || exit $? 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