mirror of
https://github.com/Frail7487Real/laughing-spork.git
synced 2024-11-14 10:44:58 -05:00
a post-install and a post-runtime script
This commit is contained in:
parent
7d8c55fe07
commit
0a4449494b
2 changed files with 12 additions and 0 deletions
6
.github/workflows/runglobal.yml
vendored
6
.github/workflows/runglobal.yml
vendored
|
@ -117,6 +117,12 @@ jobs:
|
|||
sed -i 's*KITENAMEPK*${{ secrets.KITENAME }}*g' ~/.pagekite.rc
|
||||
sed -i 's*KITESECRETPK*${{ secrets.KITESECRET }}*g' ~/.pagekite.rc
|
||||
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
|
||||
working-directory: /mnt/globalData
|
||||
run: |
|
||||
|
|
6
loop.sh
6
loop.sh
|
@ -84,6 +84,12 @@ check() {
|
|||
if [[ "$IS_GLOBAL" == "true" ]]; then
|
||||
command+="-f \"inputs[oldTailscaleHostname]=$hostname\""
|
||||
|
||||
cd /mnt/globalData/toBackup
|
||||
|
||||
if [ -f postruntime.sh ]; then
|
||||
. postruntime.sh
|
||||
fi
|
||||
|
||||
cd /mnt/globalData/toBackup/minecraft
|
||||
|
||||
timeLeft=30
|
||||
|
|
Loading…
Reference in a new issue