From d7ac6db63031b52aeeca9f317c835c81ce9fb7a6 Mon Sep 17 00:00:00 2001 From: Nahuel Angelinetti Date: Fri, 7 Jul 2006 11:39:30 +0000 Subject: [PATCH] =?UTF-8?q?Rajout=20de=20la=20confirmation=20de=20la=20sup?= =?UTF-8?q?pression=20des=20donn=C3=A9es=20lors=20d'un=20purge=20Closes:?= =?UTF-8?q?=20#645?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/po/fr.po | 50 +++++++++++++++++++++++++++++++++++++++++++++++- debian/postrm | 40 +++++++++++++++++++++++++++++++++----- debian/templates | 21 ++++++++++++++++++++ 3 files changed, 105 insertions(+), 6 deletions(-) diff --git a/debian/po/fr.po b/debian/po/fr.po index 730cf029..65c423ae 100644 --- a/debian/po/fr.po +++ b/debian/po/fr.po @@ -16,7 +16,7 @@ msgid "" msgstr "" "Project-Id-Version: AlternC 0.9.5\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2006-04-26 11:16+0200\n" +"POT-Creation-Date: 2006-07-07 13:20+0200\n" "PO-Revision-Date: 2006-04-26 11:16+0200\n" "Last-Translator: Benjamin Sonntag \n" "Language-Team: Team AlternC \n" @@ -420,3 +420,51 @@ msgstr "" "dans le fichier /etc/pop-before-smtp/pop-before-smtp.conf et commentez-les. " "La chaîne hash:/var/lib/pop-before-smtp/hosts doit aussi être ajoutée à la " "directive mynetworks dans /etc/postfix/main.cf." + +#. Type: boolean +#. Description +#: ../templates:156 +msgid "Should I remove all databases (/var/alternc/db/) ?" +msgstr "Les bases de données doivent elles être supprimés (/var/alternc/db) ?" + +#. Type: boolean +#. Description +#: ../templates:156 +msgid "All users databases will be trashed" +msgstr "Toutes les bases de données des utilisateurs seront perdues" + +#. Type: boolean +#. Description +#: ../templates:161 +msgid "Should I remove users datas ?" +msgstr "Les données des utilisateurs doivent elles êtres supprimés ?" + +#. Type: boolean +#. Description +#: ../templates:161 +msgid "The files and apache redirections created by users will be trashed" +msgstr "Les fichiers et les redirections d'apache créés par les utilisateurs seront perdus" + +#. Type: boolean +#. Description +#: ../templates:166 +msgid "Should I remove bind zones ?" +msgstr "Les zones de bind doivent elles être supprimés ?" + +#. Type: boolean +#. Description +#: ../templates:166 +msgid "It will delete all bind zones created by AlternC" +msgstr "Cela supprimera toutes les zone de bind créées par AlternC" + +#. Type: boolean +#. Description +#: ../templates:171 +msgid "Should I remove bind mailboxes ?" +msgstr "Les boites mails doivent elles être supprimés ?" + +#. Type: boolean +#. Description +#: ../templates:171 +msgid "If you accept all users e-mails will be deleted" +msgstr "Si vous acceptez, toutes les e-mails des utilisateurs seront supprimés" diff --git a/debian/postrm b/debian/postrm index d3884da1..07a2102a 100644 --- a/debian/postrm +++ b/debian/postrm @@ -2,6 +2,8 @@ set -e +. /usr/share/debconf/confmodule + # * postrm remove # * postrm purge # * old-postrm upgrade new-version @@ -13,14 +15,42 @@ set -e case "$1" in purge) - rm -f /etc/alternc/local.sh + rm -f /etc/alternc/local.sh /etc/alternc/bureau.conf rm -f /var/backups/alternc/etc-installed.tar.gz + # Purge database? - #rm -rf /var/alternc/db + db_input high alternc/postrm_remove_databases || true + db_go + db_get alternc/postrm_remove_databases || true + if [ "$RET" = "true" ]; then + rm -rf /var/alternc/db + fi + # Purge datafiles? - #rm -rf /var/alternc/dns - #rm -rf /var/alternc/html - rm -rf /var/alternc/apacheconf + db_input high alternc/postrm_remove_datafiles || true + db_go + db_get alternc/postrm_remove_datafiles || true + if [ "$RET" = "true" ]; then + rm -rf /var/backups/alternc /var/alternc/dns /var/alternc/html /var/alternc/redir + fi + + # Purge bind zones + db_input high alternc/postrm_remove_bind || true + db_go + db_get alternc/postrm_remove_bind || true + if [ "$RET" = "true" ]; then + rm -rf /var/alternc/bind /etc/bind/templates + fi + + # Purge mailboxes + db_input high alternc/postrm_remove_mailboxes || true + db_go + db_get alternc/postrm_remove_mailboxes || true + if [ "$RET" = "true" ]; then + rm -rf /var/alternc/mail + fi + + rm -rf /var/alternc/apacheconf /var/alternc/cgi-bin /var/alternc/bureau /var/alternc/exec.usr /var/alternc/mla /var/alternc/redir /var/alternc/tmp /var/log/alternc ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade) rm -f /etc/apache/conf.d/override.php.conf /etc/apache/conf.d/alternc-ssl.conf /etc/apache/conf.d/alternc.conf diff --git a/debian/templates b/debian/templates index 3a77812e..0e84df82 100644 --- a/debian/templates +++ b/debian/templates @@ -150,3 +150,24 @@ _Description: POP Before SMTP deprecated in the /etc/pop-before-smtp/pop-before-smtp.conf and uncomment it. hash:/var/lib/pop-before-smtp/hosts must also be added to the mynetworks directive of /etc/postfix/main.cf + +Template: alternc/postrm_remove_databases +Type: boolean +_Description: Should I remove all databases (/var/alternc/db/) ? + All users databases will be trashed + +Template: alternc/postrm_remove_datafiles +Type: boolean +_Description: Should I remove users datas ? + The files and apache redirections created by users will be trashed + +Template: alternc/postrm_remove_bind +Type: boolean +_Description: Should I remove bind zones ? + It will delete all bind zones created by AlternC + +Template: alternc/postrm_remove_mailboxes +Type: boolean +_Description: Should I remove bind mailboxes ? + If you accept all users e-mails will be deleted +