mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-31 21:22:52 +02:00
moving permission fixer
This commit is contained in:
@@ -39,7 +39,7 @@ then
|
|||||||
echo 'Restoring done...'
|
echo 'Restoring done...'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Checking for first run and renaming ioBroker
|
# Checking for first run of an new installation and renaming ioBroker
|
||||||
if [ -f /opt/iobroker/.install_host ]
|
if [ -f /opt/iobroker/.install_host ]
|
||||||
then
|
then
|
||||||
echo ''
|
echo ''
|
||||||
@@ -47,10 +47,18 @@ then
|
|||||||
echo 'Renaming ioBroker...'
|
echo 'Renaming ioBroker...'
|
||||||
iobroker host $(cat /opt/iobroker/.install_host)
|
iobroker host $(cat /opt/iobroker/.install_host)
|
||||||
rm -f /opt/iobroker/.install_host
|
rm -f /opt/iobroker/.install_host
|
||||||
echo 'Fixing permissions... (This might take a while! Please be patient!)'
|
echo 'First run preparation done...'
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Checking permissions on first run
|
||||||
|
if [ -f /opt/.firstrun ]
|
||||||
|
then
|
||||||
|
echo ''
|
||||||
|
echo 'Checking permissions (This might take a while! Please be patient!)...'
|
||||||
chown -R iobroker /opt/iobroker
|
chown -R iobroker /opt/iobroker
|
||||||
chown -R iobroker /opt/scripts
|
chown -R iobroker /opt/scripts
|
||||||
echo 'First run preparation done...'
|
rm -f /opt/.firstrun
|
||||||
|
echo 'Checking permissions done...'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Checking for and setting up avahi-daemon
|
# Checking for and setting up avahi-daemon
|
||||||
|
|||||||
Reference in New Issue
Block a user