mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-22 12:49:11 +02:00
changes for iobroker host this issues
This commit is contained in:
@@ -29,8 +29,8 @@ RUN chmod +x iobroker_startup.sh
|
||||
|
||||
WORKDIR /opt/iobroker/
|
||||
|
||||
RUN npm install iobroker --unsafe-perm && npm i --production --unsafe-perm
|
||||
RUN update-rc.d iobroker.sh remove && echo $(hostname) > .install_host
|
||||
RUN echo $(hostname) > .install_host && npm install iobroker --unsafe-perm && npm i --production --unsafe-perm
|
||||
RUN update-rc.d iobroker.sh remove
|
||||
RUN npm install node-gyp -g
|
||||
|
||||
CMD ["sh", "/opt/scripts/iobroker_startup.sh"]
|
||||
|
||||
@@ -5,9 +5,7 @@ cd /opt/iobroker
|
||||
if [ -f .install_host ];
|
||||
then
|
||||
echo 'First run preparation! Used Hostname:' $(hostname)
|
||||
echo $(hostname) > .install_host && ./iobroker host $(cat .install_host)
|
||||
iobroker del admin.0 && iobroker del discovery.0
|
||||
iobroker add admin && iobroker add discovery
|
||||
iobroker host $(cat .install_host)
|
||||
rm .install_host
|
||||
echo 'First run Preparation done...'
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user