diff --git a/debian/alternc.postinst b/debian/alternc.postinst index da48fc03..98637db5 100644 --- a/debian/alternc.postinst +++ b/debian/alternc.postinst @@ -171,8 +171,14 @@ EOF echo "config phpmyadmin" include_str='include("/etc/alternc/phpmyadmin.inc.php")' pma_config=/etc/phpmyadmin/config.inc.php + # Mise à jour sur une configuration existante + # recherche la chaine include_str (avec les / echappées) et supprime les + sed 's//\1;/g' $pma_config > $pma_config'_2' + mv $pma_config'_2' $pma_config + + # Sur une configuration vierge, inclure la configuration alternc if ! grep -e "$include_str" $pma_config > /dev/null 2>&1; then - echo "" >> $pma_config + echo "$include_str;" >> $pma_config fi # Add access to the management panel diff --git a/debian/control b/debian/control index 9607e1e3..5cd8c785 100644 --- a/debian/control +++ b/debian/control @@ -29,7 +29,7 @@ Homepage: http://www.alternc.org/ Package: alternc-slave Architecture: all Pre-depends: debconf (>= 0.5.00) | debconf-2.0 -Depends: debianutils (>= 1.13.1), apache2 | apache, libapache2-mod-php5 | libapache-mod-php5 | libapache2-mod-php4 | libapache-mod-php4, courier-ssl, courier-imap-ssl, courier-pop-ssl, php5-mysql | php4-mysql, phpmyadmin, postfix, proftpd-mysql, squirrelmail, postfix-tls, bind9, wget, rsync, quota, courier-authmysql | courier-authlib-mysql, ca-certificates, locales, perl-suid, perl, postfix-mysql, wwwconfig-common, sasl2-bin, libsasl2-modules, php5-cli | php4-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), pdksh (>= 5.2.14-6), adduser, mysql-client, postgrey, scponly +Depends: debianutils (>= 1.13.1), apache2 | apache, libapache2-mod-php5 | libapache-mod-php5 | libapache2-mod-php4 | libapache-mod-php4, courier-ssl, courier-imap-ssl, courier-pop-ssl, php5-mysql | php4-mysql, phpmyadmin, postfix, proftpd-mod-mysql | proftpd-mysql, squirrelmail, postfix-tls, bind9, wget, rsync, quota, courier-authmysql | courier-authlib-mysql, ca-certificates, locales, perl-suid, perl, postfix-mysql, wwwconfig-common, sasl2-bin, libsasl2-modules, php5-cli | php4-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), pdksh (>= 5.2.14-6), adduser, mysql-client, postgrey, scponly Recommends: apache2 | libapache-mod-gzip, apache2 | apache-ssl Conflicts: alternc-admintools, alternc-awstats (<= 0.3.2), alternc-webalizer (<= 0.9.4), alternc Provides: alternc