mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-21 12:19:10 +02:00
adding adminport
This commit is contained in:
@@ -2,10 +2,11 @@
|
|||||||
|
|
||||||
# Reading ENV
|
# Reading ENV
|
||||||
packages=$PACKAGES
|
packages=$PACKAGES
|
||||||
avahi=$AVAHI
|
adminport=$ADMINPORT
|
||||||
uid=$SETUID
|
uid=$SETUID
|
||||||
gid=$SETGID
|
gid=$SETGID
|
||||||
zwave=$ZWAVE
|
zwave=$ZWAVE
|
||||||
|
avahi=$AVAHI
|
||||||
|
|
||||||
# Getting date and time for logging
|
# Getting date and time for logging
|
||||||
dati=`date '+%Y-%m-%d %H:%M:%S'`
|
dati=`date '+%Y-%m-%d %H:%M:%S'`
|
||||||
@@ -34,8 +35,10 @@ echo -n "----- " && echo -n "$(printf "%-10s %-23s" node: $(node -
|
|||||||
echo -n "----- " && echo -n "$(printf "%-10s %-23s" npm: $(npm -v))" && echo " -----"
|
echo -n "----- " && echo -n "$(printf "%-10s %-23s" npm: $(npm -v))" && echo " -----"
|
||||||
echo "----- -----"
|
echo "----- -----"
|
||||||
echo "----- ENV -----"
|
echo "----- ENV -----"
|
||||||
echo -n "----- " && echo -n "$(printf "%-10s %-23s" AVAHI: $AVAHI)" && echo " -----"
|
|
||||||
echo -n "----- " && echo -n "$(printf "%-10s %-23s" PACKAGES: $PACKAGES)" && echo " -----"
|
echo -n "----- " && echo -n "$(printf "%-10s %-23s" PACKAGES: $PACKAGES)" && echo " -----"
|
||||||
|
echo -n "----- " && echo -n "$(printf "%-10s %-23s" ADMINPORT: $ADMINPORT)" && echo " -----"
|
||||||
|
echo -n "----- " && echo -n "$(printf "%-10s %-23s" AVAHI: $AVAHI)" && echo " -----"
|
||||||
|
echo -n "----- " && echo -n "$(printf "%-10s %-23s" ZWAVE: $ZWAVE)" && echo " -----"
|
||||||
echo -n "----- " && echo -n "$(printf "%-10s %-23s" SETGID: $SETGID)" && echo " -----"
|
echo -n "----- " && echo -n "$(printf "%-10s %-23s" SETGID: $SETGID)" && echo " -----"
|
||||||
echo -n "----- " && echo -n "$(printf "%-10s %-23s" SETUID: $SETUID)" && echo " -----"
|
echo -n "----- " && echo -n "$(printf "%-10s %-23s" SETUID: $SETUID)" && echo " -----"
|
||||||
echo "$(printf -- '-%.0s' {1..60})"
|
echo "$(printf -- '-%.0s' {1..60})"
|
||||||
@@ -125,8 +128,8 @@ if [ -f /opt/iobroker/.install_host ]
|
|||||||
then
|
then
|
||||||
echo "Looks like this is a new and empty installation of ioBroker."
|
echo "Looks like this is a new and empty installation of ioBroker."
|
||||||
echo "Hostname needs to be updated to " $(hostname)"..."
|
echo "Hostname needs to be updated to " $(hostname)"..."
|
||||||
sh /opt/iobroker/iobroker host $(cat /opt/iobroker/.install_host)
|
sh /opt/iobroker/iobroker host $(cat /opt/iobroker/.install_host)
|
||||||
rm -f /opt/iobroker/.install_host
|
rm -f /opt/iobroker/.install_host
|
||||||
echo 'Done.'
|
echo 'Done.'
|
||||||
echo ' '
|
echo ' '
|
||||||
fi
|
fi
|
||||||
@@ -141,6 +144,16 @@ echo "Some adapters have special requirements which can be activated by the use
|
|||||||
echo "For more information take a look at readme.md"
|
echo "For more information take a look at readme.md"
|
||||||
echo ' '
|
echo ' '
|
||||||
|
|
||||||
|
# Checking ENV for Adminport
|
||||||
|
if [ "$adminport" != "8081" ]
|
||||||
|
then
|
||||||
|
echo "Adminport is set by ENV."
|
||||||
|
echo "Setting Adminport to" $(adminport)"..."
|
||||||
|
iobroker set admin.0 --port $adminport
|
||||||
|
echo 'Done.'
|
||||||
|
echo ' '
|
||||||
|
fi
|
||||||
|
|
||||||
# Checking for and setting up avahi-daemon
|
# Checking for and setting up avahi-daemon
|
||||||
if [ "$avahi" = "true" ]
|
if [ "$avahi" = "true" ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user