mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
25 lines
564 B
Bash
Executable File
25 lines
564 B
Bash
Executable File
#!/usr/bin/env bashio
|
|
# shellcheck shell=bash
|
|
# shellcheck disable=SC2155,SC2016
|
|
set -e
|
|
|
|
mkdir -p /config/ente/custom-logs
|
|
mkdir -p /config/data
|
|
mkdir -p /config/minio-data
|
|
mkdir -p /config/postgres-data
|
|
mkdir -p /config/scripts/compose
|
|
|
|
bashio::log.info "Starting services"
|
|
|
|
# Loop through each directory in /etc/services.d/
|
|
for dir in /etc/services.d/*; do
|
|
# Check if the directory contains a 'run' file
|
|
if [ -f "$dir/run" ]; then
|
|
# Execute the 'run' file
|
|
echo "Starting service in $dir"
|
|
bash "$dir/run"
|
|
else
|
|
echo "No run file found in $dir"
|
|
fi
|
|
done
|