Update iobroker_startup.sh

This commit is contained in:
Andre
2019-01-21 15:26:05 +01:00
committed by GitHub
parent 3decc2fec3
commit 04f51a6f47

View File

@@ -5,10 +5,11 @@ cd /opt/iobroker
if [ -f /opt/scripts/.install_host ];
then
echo 'First run preparation! Used Hostname:' $(hostname)
echo 'STEP 1 of 2: Restoring if folder empty...'
echo 'STEP 1 of 2: Restoring if ioBroker-folder empty...'
if [ `ls -1a|wc -l` -lt 3 ];
then
tar -xf /opt/initial_iobroker.tar -C /
echo 'Restoring done...'
fi
echo 'STEP 2 of 2: Renaming ioBroker...'
iobroker host $(cat /opt/scripts/.install_host)