Initial commit

This commit is contained in:
Anry Das
2025-02-23 11:02:56 +02:00
commit 1889fb657d
7 changed files with 45 additions and 0 deletions

0
data/app/.gitkeep Normal file
View File

22
data/app/launch.sh Executable file
View 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