testing for advanced userscripts

This commit is contained in:
buanet
2020-02-04 01:17:28 +01:00
parent 39923bbb5d
commit 3df642f9f8
5 changed files with 71 additions and 21 deletions

View File

@@ -39,9 +39,11 @@ RUN sed -i 's/^# *\(de_DE.UTF-8\)/\1/' /etc/locale.gen \
&& sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen \
&& locale-gen
# Create scripts directory and copy scripts
# Create scripts directorys and copy scripts
RUN mkdir -p /opt/scripts/ \
&& chmod 777 /opt/scripts/
&& mkdir -p /opt/userscripts/ \
&& chmod 777 /opt/scripts/ \
&& chmod 777 /opt/userscripts/
WORKDIR /opt/scripts/
COPY scripts/iobroker_startup.sh iobroker_startup.sh
COPY scripts/setup_avahi.sh setup_avahi.sh
@@ -49,7 +51,11 @@ COPY scripts/setup_packages.sh setup_packages.sh
COPY scripts/setup_zwave.sh setup_zwave.sh
RUN chmod +x iobroker_startup.sh \
&& chmod +x setup_avahi.sh \
&& chmod +x setup_packages.sh
&& chmod +x setup_packages.sh \
&& chmod +x setup_zwave.sh
WORKDIR /opt/userscripts/
COPY userscripts/userscript_firststart_example.sh userscript_firststart_example.sh
COPY userscripts/userscript_everystart_example.sh userscript_everystart_example.sh
# Install ioBroker
WORKDIR /
@@ -63,8 +69,9 @@ RUN apt-get update \
WORKDIR /opt/iobroker/
RUN npm install -g node-gyp
# Backup initial ioBroker-folder
RUN tar -cf /opt/initial_iobroker.tar /opt/iobroker
# Backup initial ioBroker and userscript folder
RUN tar -cf /opt/initial_iobroker.tar /opt/iobroker \
&& tar -cf /opt/initial_userscripts.tar /opt/userscripts
# Setting up iobroker-user (shell and home directory)
RUN chsh -s /bin/bash iobroker \