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/
|
WORKDIR /opt/iobroker/
|
||||||
|
|
||||||
RUN npm install iobroker --unsafe-perm && npm i --production --unsafe-perm
|
RUN echo $(hostname) > .install_host && npm install iobroker --unsafe-perm && npm i --production --unsafe-perm
|
||||||
RUN update-rc.d iobroker.sh remove && echo $(hostname) > .install_host
|
RUN update-rc.d iobroker.sh remove
|
||||||
RUN npm install node-gyp -g
|
RUN npm install node-gyp -g
|
||||||
|
|
||||||
CMD ["sh", "/opt/scripts/iobroker_startup.sh"]
|
CMD ["sh", "/opt/scripts/iobroker_startup.sh"]
|
||||||
|
|||||||
@@ -5,9 +5,7 @@ cd /opt/iobroker
|
|||||||
if [ -f .install_host ];
|
if [ -f .install_host ];
|
||||||
then
|
then
|
||||||
echo 'First run preparation! Used Hostname:' $(hostname)
|
echo 'First run preparation! Used Hostname:' $(hostname)
|
||||||
echo $(hostname) > .install_host && ./iobroker host $(cat .install_host)
|
iobroker host $(cat .install_host)
|
||||||
iobroker del admin.0 && iobroker del discovery.0
|
|
||||||
iobroker add admin && iobroker add discovery
|
|
||||||
rm .install_host
|
rm .install_host
|
||||||
echo 'First run Preparation done...'
|
echo 'First run Preparation done...'
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user