This commit is contained in:
buanet
2020-07-28 09:58:19 +02:00
parent a78610eb68
commit bc4fd8349f
2 changed files with 57 additions and 1 deletions

View File

@@ -90,7 +90,7 @@ echo "$(printf -- '-%.0s' {1..60})"
echo ' '
# Installing additional packages and setting uid/gid
if [ "$packages" != "" ] || [ $(cat /etc/group | grep 'iobroker:' | cut -d':' -f3) != $setgid ] || [ $(cat /etc/passwd | grep 'iobroker:' | cut -d':' -f3) != $setuid ]
if [ "$packages" != "" ] || [ $(cat /etc/group | grep 'iobroker:' | cut -d':' -f3) != $setgid ] || [ $(cat /etc/passwd | grep 'iobroker:' | cut -d':' -f3) != $setuid ] || [ -f /opt/.firstrun ]
then
if [ "$packages" != "" ]
then
@@ -110,6 +110,13 @@ then
echo "Done."
echo ' '
fi
if [ -f /opt/.firstrun ]
then
echo "Registering maintenance-mode script as command."
echo "alias maintenance-mode=\'/opt/scripts/maintenance-mode.sh\'" >> /root/.bashrc
echo "Done."
echo ' '
fi
else
echo "Nothing to do here."
echo ' '