make slaves work again: add missing depends, detect version properly and add missing group
This commit is contained in:
parent
785f7afbaf
commit
7ee6c29403
|
@ -40,6 +40,15 @@ update_var() {
|
|||
case "$1" in
|
||||
configure)
|
||||
|
||||
# Create AlternC Panel user for web server
|
||||
if ! getent group alterncpanel; then
|
||||
addgroup --system --gid 1999 alterncpanel
|
||||
fi
|
||||
if ! getent passwd alterncpanel; then
|
||||
adduser --system --home "/etc/alternc/.alterncpanel" \
|
||||
--disabled-password --uid 1999 --ingroup alterncpanel alterncpanel
|
||||
fi
|
||||
|
||||
# ajoute l'user postfix au groupe sasl
|
||||
adduser --quiet postfix sasl
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ Description-fr.UTF-8: Suite logicielle d'hébergement mutualisé pour Debian
|
|||
Package: alternc-slave
|
||||
Architecture: all
|
||||
Pre-depends: debconf (>= 0.5.00) | debconf-2.0
|
||||
Depends: debianutils (>= 1.13.1), apache2-mpm-itk, libapache2-mod-php5, php5-mysql, phpmyadmin, postfix, proftpd-mod-mysql, proftpd-basic, postfix-tls, bind9, wget, rsync, ca-certificates, locales, perl-suid, perl, postfix-mysql, wwwconfig-common, sasl2-bin, libsasl2-modules, php5-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), adduser, mysql-client, sudo, acl, dovecot-common (>= 1:1.2.15), dovecot-imapd, dovecot-pop3d, ${misc:depends}
|
||||
Depends: debianutils (>= 1.13.1), apache2-mpm-itk, libapache2-mod-php5, php5-mysql, phpmyadmin, postfix, proftpd-mod-mysql, proftpd-basic, postfix-tls, bind9, wget, rsync, ca-certificates, locales, perl-suid, perl, postfix-mysql, wwwconfig-common, sasl2-bin, libsasl2-modules, php5-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), adduser, mysql-client, sudo, acl, dovecot-common (>= 1:1.2.15), dovecot-imapd, dovecot-pop3d, vlogger, mailx, incron, cron, ${misc:depends}
|
||||
Recommends: dovecot-managesieved, dovecot-sieve, dovecot-mysql, quota
|
||||
Conflicts: alternc-admintools, alternc-awstats (<= 0.3.2), alternc-webalizer (<= 0.9.4), alternc
|
||||
Provides: alternc
|
||||
|
|
|
@ -172,7 +172,11 @@ fi
|
|||
|
||||
WARNING="WARNING: Do not edit this file, edit the one in /etc/alternc/templates and launch alternc.install again."
|
||||
|
||||
VERSION="`dpkg -s alternc | sed -n -e 's/^Version: \(.*\)/\1/p'`"
|
||||
if [ "$slave" = "1" ]; then
|
||||
VERSION="`dpkg -s alternc-slave | sed -n -e 's/^Version: \(.*\)/\1/p'`"
|
||||
else
|
||||
VERSION="`dpkg -s alternc | sed -n -e 's/^Version: \(.*\)/\1/p'`"
|
||||
fi
|
||||
|
||||
# /var/ alternc/dns/d/www.example.com
|
||||
FQDN_LETTER="`echo $FQDN | sed -e 's/.*\.\([^\.]\)[^\.]*\.[^\.]*$/\1/'`"
|
||||
|
|
Loading…
Reference in New Issue