Rajout de la confirmation de la suppression des données lors d'un purge

Closes: #645
This commit is contained in:
Nahuel Angelinetti 2006-07-07 11:39:30 +00:00
parent 6c7745aae4
commit d7ac6db630
3 changed files with 105 additions and 6 deletions

50
debian/po/fr.po vendored
View File

@ -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 <benjamin@sonntag.fr>\n"
"Language-Team: Team AlternC <team@alternc.org>\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"

40
debian/postrm vendored
View File

@ -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

21
debian/templates vendored
View File

@ -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