diff --git a/src/paks/esniper/install.sh b/src/paks/esniper/install.sh index 872a64ab7..6bf297d8d 100644 --- a/src/paks/esniper/install.sh +++ b/src/paks/esniper/install.sh @@ -23,6 +23,11 @@ # . /opt/pakfire/lib/functions.sh extract_files +useradd -s /bin/false esniper +grep -v "esniper" /etc/sudoers > /tmp/sudoers +echo "# esniper user" >> /tmp/sudoers +echo "nobody ALL=(esniper) NOPASSWD: /usr/bin/sudo, /bin/sh, /bin/kill" >> /tmp/sudoers +mv /tmp/sudoers /etc/sudoers chmod 777 /srv/web/esniper chown nobody.nobody /srv/web/esniper /etc/init.d/apache reload diff --git a/src/paks/esniper/uninstall.sh b/src/paks/esniper/uninstall.sh index e5b5d7fe4..e47a303fe 100644 --- a/src/paks/esniper/uninstall.sh +++ b/src/paks/esniper/uninstall.sh @@ -23,3 +23,5 @@ # . /opt/pakfire/lib/functions.sh remove_files +grep -v "esniper" /etc/sudoers > /tmp/sudoers +mv /tmp/sudoers /etc/sudoers