Skip to content

Commit

Permalink
update sudoers.d files for Centos / Redhat and ubuntu / debian
Browse files Browse the repository at this point in the history
  • Loading branch information
woa7 authored Feb 12, 2020
1 parent cad9d6b commit e724d3d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,20 @@ RUN \

# need on ubuntu / debian etc
RUN \
echo "www-data ALL=(root:root) NOPASSWD: /etc/init.d/rc.piler reload" > /etc/sudoers.d/81-www-data-sudo-rc-piler-reload && \
printf "www-data ALL=(root:root) NOPASSWD: /etc/init.d/rc.piler reload\n" > /etc/sudoers.d/81-www-data-sudo-rc-piler-reload && \
printf "Defaults\\072\\045www-data \\041requiretty\\n" >> /etc/sudoers.d/81-www-data-sudo-rc-piler-reload && \
chmod 0440 /etc/sudoers.d/81-www-data-sudo-rc-piler-reload

RUN \
echo "www-data ALL=(root:root) NOPASSWD: /etc/init.d/rc.piler reload" > /etc/sudoers.d/80-www-data-sudo-rc-piler-reload && \
printf "Defaults\072\045www-data \041requiretty\n" >> /etc/sudoers.d/80-www-data-sudo-rc-piler-reload && \
chmod 0440 /etc/sudoers.d/80-www-data-sudo-rc-piler-reload
#RUN \
# echo "www-data ALL=(root:root) NOPASSWD: /etc/init.d/rc.piler reload" > /etc/sudoers.d/80-www-data-sudo-rc-piler-reload && \
# printf "Defaults\072\045www-data \041requiretty\n" >> /etc/sudoers.d/80-www-data-sudo-rc-piler-reload && \
# chmod 0440 /etc/sudoers.d/80-www-data-sudo-rc-piler-reload


# need on Centos / Redhat etc
RUN \
echo "apache ALL=(root:root) NOPASSWD: /etc/init.d/rc.piler reload" > /etc/sudoers.d/82-apache-sudo-rc-piler-reload && \
echo "Defaults\\072\\045apache \\041requiretty\\n" >> /etc/sudoers.d/82-apache-sudo-rc-piler-reload && \
printf "apache ALL=(root:root) NOPASSWD: /etc/init.d/rc.piler reload\n" > /etc/sudoers.d/82-apache-sudo-rc-piler-reload && \
printf "Defaults\\072\\045apache \\041requiretty\\n" >> /etc/sudoers.d/82-apache-sudo-rc-piler-reload && \
chmod 0440 /etc/sudoers.d/82-apache-sudo-rc-piler-reload

RUN \
Expand Down

0 comments on commit e724d3d

Please sign in to comment.