mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2026-01-29 10:11:34 +02:00
testing
This commit is contained in:
@@ -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 ' '
|
||||
|
||||
Reference in New Issue
Block a user