1 # arg 1: the new package version
3 echo "#################################################################################"
4 echo "## wwsympa.fcgi that provides Sympa's web interface needs to run as user sympa"
5 echo "## There are many options to do so :"
6 echo "## 1/ Installing 'suidperl' to run wwsympa.fcgi with SetUID. This is the default method,"
7 echo "## but it might be insecure."
8 echo "## 2/ Use 'sudo' to run wwsympa.fcgi as user sympa. Your Apache configuration should use wwsympa_sudo_wrapper.pl"
9 echo "## You should edit your /etc/sudoers file (with visudo command) as follows :"
10 echo "## apache ALL = (sympa) NOPASSWD: /usr/bin/wwsympa.fcgi"
11 echo "## 3/ Use Apache's suExec mode."
12 echo "## For (2) and (3) you should run Sympa's 'configure' with the '--enable-secure' option"
13 echo "#######################################################################################"
16 if [ ! `grep sympa /etc/group` ]; then
17 groupadd -g 52 sympa &>/dev/null
21 id sympa &>/dev/null || \
22 useradd -u 52 -g sympa -d /srv/sympa -s /bin/false sympa
25 # arg 1: the new package version
26 # arg 2: the old package version
31 # arg 1: the old package version
33 userdel sympa &> /dev/null
34 groupdel sympa &> /dev/null