improvements start script
This commit is contained in:
4
start.sh
4
start.sh
@@ -12,10 +12,12 @@ done
|
||||
groupmod -g $gid hyperion
|
||||
usermod -u $uid hyperion
|
||||
chown -R hyperion:hyperion /config
|
||||
|
||||
if test -f "initialconfig.json"; then
|
||||
|
||||
if [ ! -d "/config/db" ]; then
|
||||
sudo -u hyperion /usr/bin/hyperiond/bin/hyperiond -i --userdata /config --importConfig initialconfig.json
|
||||
fi
|
||||
if test -f "initialconfig.json"; then
|
||||
rm initialconfig.json
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user