mirror of
git://f0xx.org/android_cast
synced 2026-07-29 07:20:00 +03:00
y 6
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user