Skip to content

Commit

Permalink
Change scripts to use bash for startup and source /scripts/common. ng…
Browse files Browse the repository at this point in the history
…ninx as no-daemon
  • Loading branch information
fredclausen committed Nov 1, 2023
1 parent ebfe0bf commit d6baeeb
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 15 deletions.
6 changes: 4 additions & 2 deletions rootfs/etc/s6-overlay/scripts/daemon-acars
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/command/with-contenv sh
# shellcheck shell=sh
#!/command/with-contenv bash
# shellcheck shell=bash

source /scripts/common

s6wrap=(s6wrap --quiet --prepend="$(basename "$0")" --timestamps --args)
"${s6wrap[@]}" s6-setuidgid "$WEBUSER" php /var/www/flightairmap/htdocs/scripts/daemon-acars.php
6 changes: 4 additions & 2 deletions rootfs/etc/s6-overlay/scripts/daemon-spotter
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/command/with-contenv sh
# shellcheck shell=sh
#!/command/with-contenv bash
# shellcheck shell=bash

source /scripts/common

s6wrap=(s6wrap --quiet --prepend="$(basename "$0")" --timestamps --args)
"${s6wrap[@]}" s6-setuidgid "$WEBUSER" php /var/www/flightairmap/htdocs/scripts/daemon-spotter.php
6 changes: 4 additions & 2 deletions rootfs/etc/s6-overlay/scripts/mysql
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/command/with-contenv sh
# shellcheck shell=sh
#!/command/with-contenv bash
# shellcheck shell=bash

source /scripts/common

s6wrap=(s6wrap --quiet --prepend="$(basename "$0")" --timestamps --args)

Expand Down
8 changes: 5 additions & 3 deletions rootfs/etc/s6-overlay/scripts/nginx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/command/with-contenv sh
# shellcheck shell=sh
#!/command/with-contenv bash
# shellcheck shell=bash

source /scripts/common

s6wrap=(s6wrap --quiet --prepend="$(basename "$0")" --timestamps --args)
"${s6wrap[@]}" /usr/sbin/nginx
"${s6wrap[@]}" /usr/sbin/nginx -g 'daemon off;'
6 changes: 4 additions & 2 deletions rootfs/etc/s6-overlay/scripts/php-fpm
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/command/with-contenv sh
# shellcheck shell=sh
#!/command/with-contenv bash
# shellcheck shell=bash

source /scripts/common

s6wrap=(s6wrap --quiet --prepend="$(basename "$0")" --timestamps --args)
"${s6wrap[@]}" /usr/sbin/php-fpm7.4 --nodaemonize
6 changes: 4 additions & 2 deletions rootfs/etc/s6-overlay/scripts/socat
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/command/with-contenv sh
# shellcheck shell=sh
#!/command/with-contenv bash
# shellcheck shell=bash

source /scripts/common

s6wrap=(s6wrap --quiet --prepend="$(basename "$0")" --timestamps --args)

Expand Down
6 changes: 4 additions & 2 deletions rootfs/etc/s6-overlay/scripts/update_db
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/command/with-contenv sh
# shellcheck shell=sh
#!/command/with-contenv bash
# shellcheck shell=bash

source /scripts/common

s6wrap=(s6wrap --quiet --prepend="$(basename "$0")" --timestamps --args)
"${s6wrap[@]}" sleep 1h
Expand Down

0 comments on commit d6baeeb

Please sign in to comment.