updates
This commit is contained in:
parent
21b0c32511
commit
fc5ee0724b
@ -3,7 +3,7 @@ EXPOSE 80 139 445
|
|||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY Service-check.sh .
|
COPY Service-check.sh .
|
||||||
RUN apt-get update && apt-get upgrade -y
|
RUN apt-get update && apt-get upgrade -y
|
||||||
RUN apt-get install apt-transport-https wget samba samba-common unison -y && \
|
RUN apt-get install apt-transport-https wget samba samba-common -y && \
|
||||||
mkdir /media/storage /data /data/samba /data/webmin
|
mkdir /media/storage /data /data/samba /data/webmin
|
||||||
|
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
@ -26,4 +26,7 @@ RUN sed -i 's/10000/80/g' /etc/webmin/miniserv.conf && \
|
|||||||
sed -i 's/ssl=1/ssl=0/g' /etc/webmin/miniserv.conf
|
sed -i 's/ssl=1/ssl=0/g' /etc/webmin/miniserv.conf
|
||||||
|
|
||||||
RUN echo root:webmin | chpasswd
|
RUN echo root:webmin | chpasswd
|
||||||
|
|
||||||
|
RUN cp /etc/samba/* /data/samba/. && cp /etc/webmin/* /data/webmin/.
|
||||||
|
|
||||||
CMD [ "/bin/bash","/Service-check.sh" ]
|
CMD [ "/bin/bash","/Service-check.sh" ]
|
||||||
|
@ -1,8 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
unison -batch /etc/samba /data/samba
|
|
||||||
unison -batch /etc/webmin /data/webmin
|
|
||||||
apt-get update && apt-get upgrade -y
|
apt-get update && apt-get upgrade -y
|
||||||
wait
|
wait
|
||||||
|
if [ ! -f /data/webmin/config ];
|
||||||
|
then
|
||||||
|
cp /etc/samba/* /data/samba/. && cp /etc/webmin/* /data/webmin/.
|
||||||
|
fi
|
||||||
|
wait
|
||||||
|
ln -f /data/samba/* /etc/samba/ && ln -f /etc/webmin/* /data/webmin/
|
||||||
service webmin start
|
service webmin start
|
||||||
service smbd start
|
service smbd start
|
||||||
service nmbd start
|
service nmbd start
|
||||||
|
Loading…
Reference in New Issue
Block a user