Permissions everywhere!
This commit is contained in:
parent
d4ea73f9b2
commit
637576cee8
|
@ -6,7 +6,7 @@ VOLUME /data
|
|||
RUN apk add --no-cache git bash openssh parallel openssh-keygen vim shadow
|
||||
RUN useradd --uid 10000 -ms /bin/bash executor
|
||||
RUN chown executor:executor /data
|
||||
RUN echo "* * * * * /usr/local/bin/cron-command" >> /etc/crontabs/executor
|
||||
RUN echo "* * * * * /usr/local/bin/cron-command" >> /etc/crontabs/root
|
||||
RUN touch /var/run/cloner.pid
|
||||
RUN chown executor:executor /var/run/cloner.pid
|
||||
RUN apk del shadow
|
||||
|
|
|
@ -12,6 +12,7 @@ fi
|
|||
if [ $UID -eq 0 ]
|
||||
then
|
||||
find /data \! -user executor -exec chown executor:executor {} \;
|
||||
chown executor:executor /var/run/cloner.pid
|
||||
su executor -c cron-command
|
||||
exit $?
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user