Skip to content

Commit

Permalink
Service scripts are used for installing, we only need to run them once.
Browse files Browse the repository at this point in the history
  • Loading branch information
SumolX committed Jun 17, 2024
1 parent e7cf2e6 commit d1ee550
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions mkapp/app/services/startup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
#!/bin/sh

for FILE in $(ls /mnt/app/services/scripts/)
if [ ! -f /mnt/app/services/scripts/install/install.done ]; then
for FILE in $(ls /mnt/app/services/scripts/install/)
do
echo "Installing service: $FILE"
/mnt/app/services/scripts/install/$FILE &
done
touch /mnt/app/services/scripts/install/install.done
fi

for FILE in $(ls /mnt/app/services/scripts/runtime/)
do
echo "Starting service: $FILE"
/mnt/app/services/scripts/$FILE &
/mnt/app/services/scripts/runtime/$FILE &
done

0 comments on commit d1ee550

Please sign in to comment.