Initial commit
This commit is contained in:
0
data/app/.gitkeep
Normal file
0
data/app/.gitkeep
Normal file
22
data/app/launch.sh
Executable file
22
data/app/launch.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
readarray -d '' START_FILES < <(find /app -name 'start.sh' -type f -print0)
|
||||
#echo "[DEBUG] Files: ${START_FILES[*]}"
|
||||
|
||||
if [ ${#START_FILES[@]} -eq 0 ]; then
|
||||
echo "[ERROR] Files not found"
|
||||
exit 127
|
||||
fi
|
||||
|
||||
for file in "${START_FILES[@]}"; do
|
||||
if [ "$file" != "" ]; then
|
||||
echo "[INFO] Launching ${file}"
|
||||
bash "$file" &
|
||||
else
|
||||
echo "[ERROR] Files not found"
|
||||
fi
|
||||
done
|
||||
|
||||
while true; do
|
||||
sleep 10
|
||||
done
|
||||
Reference in New Issue
Block a user