From f6b19b152cf1be5e93cbea44167313b69acbee01 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 1 Jun 2008 07:59:35 +0200 Subject: [PATCH] esniper sudoers entry now removed at uninstall fixed typo at install that not add comment to sudoers --- src/paks/esniper/install.sh | 6 +++--- src/paks/esniper/uninstall.sh | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/paks/esniper/install.sh b/src/paks/esniper/install.sh index 214b953c41..6bf297d8d0 100644 --- a/src/paks/esniper/install.sh +++ b/src/paks/esniper/install.sh @@ -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 diff --git a/src/paks/esniper/uninstall.sh b/src/paks/esniper/uninstall.sh index e5b5d7fe4e..e47a303fec 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 -- 2.39.2