diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-03-04 21:37:09 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-03-04 21:37:09 +0000 |
commit | 9df6ca1081d10c6ccb841ab436c23c3e3a067acd (patch) | |
tree | 485fea4fad65cbfa14034a785dec271df4650f33 /debian/rapid-tunneling-gui.postinst | |
parent | 8d75b8882d7b94577cacd6c60cc56107a8549708 (diff) |
rapid-tunneling: more installation fixes
* Avoid initial sudoers lecture.
* Install apache configuration on Debian.
* Don't hide errors of useradd on rapid-tunneling/redhat (copied from deb)
* Those errors were because directory /var/lib/rapid-tunneling did not
exist.
git-svn-id: svn+ssh://xorcom/home/svn/debs/components/rapid-tunneling@6825 283159da-0705-0410-b60c-f2062b4bb6ad
Diffstat (limited to 'debian/rapid-tunneling-gui.postinst')
-rw-r--r-- | debian/rapid-tunneling-gui.postinst | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/debian/rapid-tunneling-gui.postinst b/debian/rapid-tunneling-gui.postinst index b38c572..441bead 100644 --- a/debian/rapid-tunneling-gui.postinst +++ b/debian/rapid-tunneling-gui.postinst @@ -18,13 +18,15 @@ set -e # the debian-policy package SUDOERS=/etc/sudoers -LINE="www-data ALL=(rapid-tunneling) NOPASSWD:/usr/sbin/rapid-tunneling" -LINE2="www-data ALL=(rapid-tunneling) NOPASSWD:/usr/sbin/rapid-tunneling-status" +user="asterisk" +TEXT="Defaults>$user !lecture +$user ALL=(rapid-tunneling) NOPASSWD:/usr/sbin/rapid-tunneling +$user ALL=(rapid-tunneling) NOPASSWD:/usr/sbin/rapid-tunneling-status" case "$1" in configure) - if ! fgrep -q "$LINE" $SUDOERS; then echo "$LINE" >> $SUDOERS; fi - if ! fgrep -q "$LINE2" $SUDOERS; then echo "$LINE2" >> $SUDOERS; fi + if ! fgrep -q "$TEXT" $SUDOERS; then echo "$TEXT" >> $SUDOERS; fi + # FIXME: reloading httpd ;; abort-upgrade|abort-remove|abort-deconfigure) |