mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-15 00:34:16 +01:00
17 lines
380 B
Bash
Executable File
17 lines
380 B
Bash
Executable File
#!/usr/bin/env bashio
|
|
# shellcheck shell=bash
|
|
set -e
|
|
# hadolint ignore=SC2155
|
|
|
|
# Set configuration directory
|
|
if [ -d /home/node/.signalk ]; then
|
|
rm -r /home/node/.signalk
|
|
fi
|
|
ln -sf /config /home/node/.signalk
|
|
chown -R node:node /config
|
|
chown -R node:node /home/node/.signalk
|
|
|
|
bashio::log.info "Starting application"
|
|
|
|
sudo -u node -s /bin/sh -c "/home/node/signalk/startup.sh"
|