a post-install and a post-runtime script

This commit is contained in:
CeciliaKelley33Mm 2024-10-13 08:38:44 +07:00
parent 7d8c55fe07
commit 0a4449494b
2 changed files with 12 additions and 0 deletions

View file

@ -117,6 +117,12 @@ jobs:
sed -i 's*KITENAMEPK*${{ secrets.KITENAME }}*g' ~/.pagekite.rc sed -i 's*KITENAMEPK*${{ secrets.KITENAME }}*g' ~/.pagekite.rc
sed -i 's*KITESECRETPK*${{ secrets.KITESECRET }}*g' ~/.pagekite.rc sed -i 's*KITESECRETPK*${{ secrets.KITESECRET }}*g' ~/.pagekite.rc
python pagekite.py & python pagekite.py &
- name: Run post-install script (if exists)
working-directory: /mnt/globalData/toBackup
run: |
if [ -f postinstall.sh ]; then
. postinstall.sh
fi
- name: Run the long-lived process - name: Run the long-lived process
working-directory: /mnt/globalData working-directory: /mnt/globalData
run: | run: |

View file

@ -84,6 +84,12 @@ check() {
if [[ "$IS_GLOBAL" == "true" ]]; then if [[ "$IS_GLOBAL" == "true" ]]; then
command+="-f \"inputs[oldTailscaleHostname]=$hostname\"" command+="-f \"inputs[oldTailscaleHostname]=$hostname\""
cd /mnt/globalData/toBackup
if [ -f postruntime.sh ]; then
. postruntime.sh
fi
cd /mnt/globalData/toBackup/minecraft cd /mnt/globalData/toBackup/minecraft
timeLeft=30 timeLeft=30