mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-06 07:35:56 +02:00
Remove root
This commit is contained in:
@@ -10,12 +10,6 @@ fi
|
|||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
USER=node
|
USER=node
|
||||||
if bashio::config.true "RUN_AS_ROOT"; then
|
|
||||||
USER="root"
|
|
||||||
bashio::log.warning "RUN_AS is set, app will run as $USER"
|
|
||||||
ln -sf /config "/root/.signalk"
|
|
||||||
ln -sf /usr/lib/node_modules/signalk-server /root/signalk
|
|
||||||
fi
|
|
||||||
echo "... creating symlinks and checking permissions"
|
echo "... creating symlinks and checking permissions"
|
||||||
ln -sf /config "/home/node/.signalk"
|
ln -sf /config "/home/node/.signalk"
|
||||||
chown -R "$USER:$USER" /config
|
chown -R "$USER:$USER" /config
|
||||||
|
|||||||
Reference in New Issue
Block a user