22 lines
420 B
Bash
Executable File
22 lines
420 B
Bash
Executable File
#!/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 |