1
0
mirror of synced 2026-03-30 07:59:58 +02:00

Add Baikal

This commit is contained in:
d-two
2022-12-14 10:48:06 +01:00
committed by GitHub
parent 4b0e3004a7
commit 26188fc9f7
21 changed files with 558 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/command/with-contenv bashio
# ==============================================================================
# Home Assistant Community Add-on: phpMyAdmin
# Take down the S6 supervision tree when Nginx fails
# ==============================================================================
if [[ "${1}" -ne 0 ]] && [[ "${1}" -ne 256 ]]; then
bashio::log.warning "NGinx crashed, halting add-on"
/run/s6/basedir/bin/halt
fi
bashio::log.info "NGinx stoped, restarting..."

View File

@@ -0,0 +1,12 @@
#!/command/with-contenv bashio
# ==============================================================================
# Home Assistant Community Add-on: phpMyAdmin
# Runs the Nginx daemon
# ==============================================================================
# Wait for PHP-FPM to become available
bashio::net.wait_for 9001
bashio::log.info "Starting NGinx...."
exec nginx

View File

@@ -0,0 +1,11 @@
#!/command/with-contenv bashio
# ==============================================================================
# Home Assistant Community Add-on: phpMyAdmin
# Take down the S6 supervision tree when PHP FPM fails
# ==============================================================================
if [[ "${1}" -ne 0 ]] && [[ "${1}" -ne 256 ]]; then
bashio::log.warning "php-fpm crashed, halting add-on"
/run/s6/basedir/bin/halt
fi
bashio::log.info "php-fpm stoped, restarting..."

View File

@@ -0,0 +1,8 @@
#!/command/with-contenv bashio
# ==============================================================================
# Home Assistant Community Add-on: phpMyAdmin
# Runs the PHP-FPM daemon
# ==============================================================================
bashio::log.info "Starting PHP-FPM..."
exec php-fpm8 --nodaemonize