* Fix #329: Fails to start with node syntax errors * s6 v3: Don't try to send commands to the supervision tree, per https://github.com/just-containers/s6-overlay/blob/master/MOVING-TO-V3.md * Updates to build process to set the correct permissions, as well as through cont-init.d as well as set a fixed (more modern) base image * Fix build to actually be locked to a specified version of the base image Update to base image 18.2.0
This commit is contained in:
parent
3e06a50caa
commit
7c01409231
8 changed files with 24 additions and 31 deletions
4
plejd/rootfs/etc/cont-init.d/10-plejd-perms
Executable file
4
plejd/rootfs/etc/cont-init.d/10-plejd-perms
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/with-contenv bashio
|
||||
|
||||
bashio::log.info 'Ensuring Plejd scripts are executable'
|
||||
chmod 0755 /etc/services.d/plejd/run /usr/bin/plejd.sh || bashio::exit.nok 'Failed to set permissions'
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
#!/usr/bin/execlineb -S0
|
||||
# ==============================================================================
|
||||
# Community Hass.io Add-ons: Plejd
|
||||
# ==============================================================================
|
||||
if -n { s6-test $# -ne 0 }
|
||||
if -n { s6-test ${1} -eq 256 }
|
||||
|
||||
s6-svscanctl -t /var/run/s6/services
|
||||
4
plejd/rootfs/etc/services.d/plejd/run
Normal file → Executable file
4
plejd/rootfs/etc/services.d/plejd/run
Normal file → Executable file
|
|
@ -5,14 +5,10 @@
|
|||
# ==============================================================================
|
||||
|
||||
bashio::log.info 'Starting the Plejd service...'
|
||||
bashio::log.info 'Docker env updated 2023-10-17...'
|
||||
|
||||
# Change working directory
|
||||
cd /plejd || bashio::exit.nok 'Unable to change working directory'
|
||||
|
||||
# Run the Plejd service
|
||||
bashio::log.info 'Verified permissions on startup script'
|
||||
chmod +x /usr/bin/plejd.sh
|
||||
|
||||
bashio::log.info 'Executing startup script'
|
||||
exec /usr/bin/plejd.sh
|
||||
|
|
|
|||
0
plejd/rootfs/usr/bin/plejd.sh
Normal file → Executable file
0
plejd/rootfs/usr/bin/plejd.sh
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue