esniper sudoers entry now removed at uninstall

fixed typo at install that not add comment to sudoers
This commit is contained in:
Arne Fitzenreiter
2008-06-01 07:59:35 +02:00
parent 754c6288f7
commit f6b19b152c
2 changed files with 5 additions and 3 deletions

View File

@@ -24,9 +24,9 @@
. /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
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

View File

@@ -23,3 +23,5 @@
#
. /opt/pakfire/lib/functions.sh
remove_files
grep -v "esniper" /etc/sudoers > /tmp/sudoers
mv /tmp/sudoers /etc/sudoers