Ca fait marcher mpm-itk mais ca casse la génération du .deb

This commit is contained in:
Alan Garcia 2011-05-22 19:18:43 +00:00
parent 0a0f5bc77a
commit 19317ccbec
10 changed files with 197 additions and 117 deletions

View File

@ -19,6 +19,8 @@ if [ "$RET" = "false" ]; then
exit 1 exit 1
fi fi
db_input critical alternc/warningaclquota || true
# default values for local.sh # default values for local.sh
MYSQL_HOST=127.0.0.1 MYSQL_HOST=127.0.0.1
MYSQL_DATABASE=alternc MYSQL_DATABASE=alternc
@ -51,6 +53,7 @@ if [ -r /etc/alternc/my.cnf ]; then
eval `sed -n -e "/=/{s/ *= *\"\?/='/;s/\"\?\$/'/;s/host/MYSQL_HOST/;s/user/MYSQL_USER/;s/password/MYSQL_PASS/;s/database/MYSQL_DATABASE/;p}" /etc/alternc/my.cnf` eval `sed -n -e "/=/{s/ *= *\"\?/='/;s/\"\?\$/'/;s/host/MYSQL_HOST/;s/user/MYSQL_USER/;s/password/MYSQL_PASS/;s/database/MYSQL_DATABASE/;p}" /etc/alternc/my.cnf`
fi fi
# mettre les valeurs de local.sh comme "default" pour debconf # mettre les valeurs de local.sh comme "default" pour debconf
db_get alternc/hostingname db_get alternc/hostingname
if [ -z "$RET" ] if [ -z "$RET" ]

View File

@ -20,7 +20,6 @@ case "$1" in
echo "and re-run /usr/lib/alternc/fixperms.sh " echo "and re-run /usr/lib/alternc/fixperms.sh "
/usr/lib/alternc/fixperms.sh /usr/lib/alternc/fixperms.sh
if dpkg --compare-versions "$2" lt "0.9.4"; then if dpkg --compare-versions "$2" lt "0.9.4"; then
echo "Upgrading bind configuration" echo "Upgrading bind configuration"
# Move /etc/bind files around # Move /etc/bind files around

138
debian/po/fr.po vendored
View File

@ -15,7 +15,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: AlternC 0.9.5\n" "Project-Id-Version: AlternC 0.9.5\n"
"Report-Msgid-Bugs-To: anarcat@koumbit.org\n" "Report-Msgid-Bugs-To: anarcat@koumbit.org\n"
"POT-Creation-Date: 2009-07-27 17:24-0400\n" "POT-Creation-Date: 2011-05-22 20:29+0200\n"
"PO-Revision-Date: 2006-04-26 11:16+0200\n" "PO-Revision-Date: 2006-04-26 11:16+0200\n"
"Last-Translator: Benjamin Sonntag <benjamin@sonntag.fr>\n" "Last-Translator: Benjamin Sonntag <benjamin@sonntag.fr>\n"
"Language-Team: Team AlternC <team@alternc.org>\n" "Language-Team: Team AlternC <team@alternc.org>\n"
@ -59,15 +59,47 @@ msgstr ""
msgid "YOU HAVE BEEN WARNED." msgid "YOU HAVE BEEN WARNED."
msgstr "VOUS AVEZ ETE PREVENU !" msgstr "VOUS AVEZ ETE PREVENU !"
#. Type: string #. Type: note
#. Description #. Description
#: ../templates:2001 #: ../templates:2001
msgid "AlternC need ACL and QUOTA activated"
msgstr "AlternC nécessite les ACL et les QUOTA actif"
#. Type: note
#. Description
#: ../templates:2001
msgid ""
"AlternC can't work without ACL activated on his file. Please check your /etc/"
"fstab to activate ACL for AlternC."
msgstr ""
"AlternC ne peux pas fonctionner sans les ACL activé. N'oubliez pas de "
"vérifier /etc/fstab"
#. Type: note
#. Description
#: ../templates:2001
msgid "Run /usr/lib/alternc/fixperms.sh once it's activated."
msgstr "Executez /usr/lib/alternc/fixperms.sh une fois les ACL activent."
#. Type: note
#. Description
#: ../templates:2001
msgid ""
"Also, you need to activate group quota (grpquota) to be able to use disk "
"quota."
msgstr ""
"Vous avez aussi besoin des quota de groupe (grpquota) pour pouvoir utiliser"
"les quotas disque."
#. Type: string
#. Description
#: ../templates:3001
msgid "Fully qualified name of the desktop:" msgid "Fully qualified name of the desktop:"
msgstr "Nom de domaine du bureau :" msgstr "Nom de domaine du bureau :"
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:2001 #: ../templates:3001
msgid "" msgid ""
"Please enter the fully qualified name of your server. This will be the " "Please enter the fully qualified name of your server. This will be the "
"domain part of the url you will use to access the virtual managment desktop. " "domain part of the url you will use to access the virtual managment desktop. "
@ -79,7 +111,7 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:2001 #: ../templates:3001
msgid "The default should be ok if your machine is correctly configured." msgid "The default should be ok if your machine is correctly configured."
msgstr "" msgstr ""
"La valeur par défaut doit convenir si votre machine est correctement " "La valeur par défaut doit convenir si votre machine est correctement "
@ -87,13 +119,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:3001 #: ../templates:4001
msgid "Name of your hosting service:" msgid "Name of your hosting service:"
msgstr "Nom de votre service d'hébergement :" msgstr "Nom de votre service d'hébergement :"
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:3001 #: ../templates:4001
msgid "" msgid ""
"Please enter the name of your hosting service. It may be your company's name " "Please enter the name of your hosting service. It may be your company's name "
"or your personnal name or whatever you want to ..." "or your personnal name or whatever you want to ..."
@ -103,13 +135,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:4001 #: ../templates:5001
msgid "Name of the primary domain name server:" msgid "Name of the primary domain name server:"
msgstr "Nom de domaine du serveur de dns primaire :" msgstr "Nom de domaine du serveur de dns primaire :"
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:4001 #: ../templates:5001
msgid "" msgid ""
"Please enter the fully qualified name of your primary dns server. It can be " "Please enter the fully qualified name of your primary dns server. It can be "
"this server since bind is installed and configured by AlternC. Anyway, if " "this server since bind is installed and configured by AlternC. Anyway, if "
@ -125,13 +157,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:5001 #: ../templates:6001
msgid "Name of the secondary domain name server:" msgid "Name of the secondary domain name server:"
msgstr "Nom de domaine du serveur de dns secondaire :" msgstr "Nom de domaine du serveur de dns secondaire :"
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:5001 #: ../templates:6001
msgid "" msgid ""
"Please enter the fully qualified name of your secondary dns server. It can " "Please enter the fully qualified name of your secondary dns server. It can "
"be this server since bind is installed and configured by AlternC. Anyway, " "be this server since bind is installed and configured by AlternC. Anyway, "
@ -145,7 +177,7 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:5001 #: ../templates:6001
msgid "" msgid ""
"You may contact the AlternC's users mailing list if you want to exchange dns " "You may contact the AlternC's users mailing list if you want to exchange dns "
"service with other AlternC's users." "service with other AlternC's users."
@ -156,13 +188,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:6001 #: ../templates:7001
msgid "Name of the mysql server:" msgid "Name of the mysql server:"
msgstr "Nom de domaine du serveur mysql :" msgstr "Nom de domaine du serveur mysql :"
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:6001 #: ../templates:7001
msgid "" msgid ""
"Please enter the fully qualified name of your mysql server host. On small " "Please enter the fully qualified name of your mysql server host. On small "
"systems, it IS \"localhost\" since you may have installed a local mysql " "systems, it IS \"localhost\" since you may have installed a local mysql "
@ -184,13 +216,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:7001 #: ../templates:8001
msgid "AlternC's mysql system database:" msgid "AlternC's mysql system database:"
msgstr "Base système mysql d'AlternC : " msgstr "Base système mysql d'AlternC : "
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:7001 #: ../templates:8001
msgid "" msgid ""
"AlternC will create a mysql database to store it's system data. Please " "AlternC will create a mysql database to store it's system data. Please "
"choose the name of this database here. The default value should be good in " "choose the name of this database here. The default value should be good in "
@ -202,13 +234,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:8001 #: ../templates:9001
msgid "AlternC's mysql account:" msgid "AlternC's mysql account:"
msgstr "Compte mysql d'AlternC : " msgstr "Compte mysql d'AlternC : "
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:8001 #: ../templates:9001
msgid "" msgid ""
"AlternC will create a mysql administrator account. Please choose it's " "AlternC will create a mysql administrator account. Please choose it's "
"username here. The default value should be good in most case." "username here. The default value should be good in most case."
@ -219,13 +251,13 @@ msgstr ""
#. Type: password #. Type: password
#. Description #. Description
#: ../templates:9001 #: ../templates:10001
msgid "Password of the AlternC's mysql account:" msgid "Password of the AlternC's mysql account:"
msgstr "Mot de passe du compte mysql : " msgstr "Mot de passe du compte mysql : "
#. Type: password #. Type: password
#. Description #. Description
#: ../templates:9001 #: ../templates:10001
msgid "" msgid ""
"AlternC requires an administrator account on the mysql server. It will be " "AlternC requires an administrator account on the mysql server. It will be "
"created automatically during the install process. Please choose a password " "created automatically during the install process. Please choose a password "
@ -235,7 +267,7 @@ msgstr ""
#. Type: password #. Type: password
#. Description #. Description
#: ../templates:9001 #: ../templates:10001
msgid "" msgid ""
"Please choose a quite complex password since it will have full access to the " "Please choose a quite complex password since it will have full access to the "
"system database !!!" "system database !!!"
@ -245,13 +277,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:10001 #: ../templates:11001
msgid "The server to GRANT permissions to:" msgid "The server to GRANT permissions to:"
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:10001 #: ../templates:11001
msgid "" msgid ""
"AlternC and MySQL can be installed on different servers. In order to have " "AlternC and MySQL can be installed on different servers. In order to have "
"GRANT table properly created and manipulated, this parameter must be set to " "GRANT table properly created and manipulated, this parameter must be set to "
@ -261,13 +293,13 @@ msgstr ""
#. Type: select #. Type: select
#. Description #. Description
#: ../templates:11001 #: ../templates:12001
msgid "The way backup rotation is executated" msgid "The way backup rotation is executated"
msgstr "" msgstr ""
#. Type: select #. Type: select
#. Description #. Description
#: ../templates:11001 #: ../templates:12001
msgid "" msgid ""
"AlternC enables users to configure their own backups, on demand, with " "AlternC enables users to configure their own backups, on demand, with "
"automatic rotation. This option determines how the backups are rotated." "automatic rotation. This option determines how the backups are rotated."
@ -275,7 +307,7 @@ msgstr ""
#. Type: select #. Type: select
#. Description #. Description
#: ../templates:11001 #: ../templates:12001
msgid "" msgid ""
"rotate - backup.sql, backup.sql.0, backup.sql.1 date - backup.sql, backup." "rotate - backup.sql, backup.sql.0, backup.sql.1 date - backup.sql, backup."
"sql.20080709, backup.sql.20080708" "sql.20080709, backup.sql.20080708"
@ -283,13 +315,13 @@ msgstr ""
#. Type: select #. Type: select
#. Description #. Description
#: ../templates:12001 #: ../templates:13001
msgid "Behavior of the backup script when it encounters a unmanaged file" msgid "Behavior of the backup script when it encounters a unmanaged file"
msgstr "" msgstr ""
#. Type: select #. Type: select
#. Description #. Description
#: ../templates:12001 #: ../templates:13001
msgid "" msgid ""
"The SQL backups can rename or overwrite existing files it doesn't know about " "The SQL backups can rename or overwrite existing files it doesn't know about "
"when doing backups. The default behavior is to skip those files and ignore " "when doing backups. The default behavior is to skip those files and ignore "
@ -298,13 +330,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:13001 #: ../templates:14001
msgid "The primary IP of this server:" msgid "The primary IP of this server:"
msgstr "l'adresse IP principale de ce serveur : " msgstr "l'adresse IP principale de ce serveur : "
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:13001 #: ../templates:14001
msgid "" msgid ""
"AlternC will default the A records for domains it hosts to this address. In " "AlternC will default the A records for domains it hosts to this address. In "
"other words, this is the address everyone can reach to server at." "other words, this is the address everyone can reach to server at."
@ -315,13 +347,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:14001 #: ../templates:15001
msgid "The internal IP of this server:" msgid "The internal IP of this server:"
msgstr "l'adresse IP interne du serveur : " msgstr "l'adresse IP interne du serveur : "
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:14001 #: ../templates:15001
msgid "" msgid ""
"AlternC will configure Apache and other services to listen to this address. " "AlternC will configure Apache and other services to listen to this address. "
"This is usually the same as the primary IP of the server, unless the server " "This is usually the same as the primary IP of the server, unless the server "
@ -333,19 +365,19 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:14001 #: ../templates:15001
msgid "In other words, this is the IP address of eth0." msgid "In other words, this is the IP address of eth0."
msgstr "En d'autres mots, ceci est l'adresse assignée à eth0." msgstr "En d'autres mots, ceci est l'adresse assignée à eth0."
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:15001 #: ../templates:16001
msgid "The default MX to assign to new domains:" msgid "The default MX to assign to new domains:"
msgstr "le MX à assigner aux nouveaux domaines : " msgstr "le MX à assigner aux nouveaux domaines : "
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:15001 #: ../templates:16001
msgid "" msgid ""
"AlternC will assign this hostname as the MX record for all the domains it " "AlternC will assign this hostname as the MX record for all the domains it "
"hosts. It is usually better be left alone." "hosts. It is usually better be left alone."
@ -355,13 +387,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:16001 #: ../templates:17001
msgid "The path where AlternC is installed:" msgid "The path where AlternC is installed:"
msgstr "Emplacement d'AlternC : " msgstr "Emplacement d'AlternC : "
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:16001 #: ../templates:17001
msgid "" msgid ""
"Please enter the partition name where alternc is installed. This is used " "Please enter the partition name where alternc is installed. This is used "
"mainly for disk quotas." "mainly for disk quotas."
@ -371,19 +403,19 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:16001 #: ../templates:17001
msgid "Warning : Be careful ! It can generate some problems." msgid "Warning : Be careful ! It can generate some problems."
msgstr "Attention : Prenez garde ! Cela peut entraîner quelques problèmes." msgstr "Attention : Prenez garde ! Cela peut entraîner quelques problèmes."
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:17001 #: ../templates:18001
msgid "The monitoring server:" msgid "The monitoring server:"
msgstr "serveur de surveillance : " msgstr "serveur de surveillance : "
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:17001 #: ../templates:18001
msgid "" msgid ""
"The IP address (or ip/prefix) of the server(s) which must be authorized to " "The IP address (or ip/prefix) of the server(s) which must be authorized to "
"ping us and access apache status pages. Completely optional." "ping us and access apache status pages. Completely optional."
@ -393,13 +425,13 @@ msgstr ""
#. Type: note #. Type: note
#. Description #. Description
#: ../templates:18001 #: ../templates:19001
msgid "POP Before SMTP deprecated" msgid "POP Before SMTP deprecated"
msgstr "POP Before SMTP déprécié" msgstr "POP Before SMTP déprécié"
#. Type: note #. Type: note
#. Description #. Description
#: ../templates:18001 #: ../templates:19001
msgid "" msgid ""
"AlternC doesn't automatically configure the pop-before-smtp package anymore, " "AlternC doesn't automatically configure the pop-before-smtp package anymore, "
"since it is correctly configured for SASL authentification these days. If " "since it is correctly configured for SASL authentification these days. If "
@ -411,13 +443,13 @@ msgstr ""
#. Type: note #. Type: note
#. Description #. Description
#: ../templates:18001 #: ../templates:19001
msgid "# For Courier-POP3 and Courier-IMAP:" msgid "# For Courier-POP3 and Courier-IMAP:"
msgstr "# For Courier-POP3 and Courier-IMAP:" msgstr "# For Courier-POP3 and Courier-IMAP:"
#. Type: note #. Type: note
#. Description #. Description
#: ../templates:18001 #: ../templates:19001
msgid "" msgid ""
"in the /etc/pop-before-smtp/pop-before-smtp.conf and uncomment it. hash:/var/" "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 /" "lib/pop-before-smtp/hosts must also be added to the mynetworks directive of /"
@ -429,25 +461,25 @@ msgstr ""
#. Type: boolean #. Type: boolean
#. Description #. Description
#: ../templates:19001 #: ../templates:20001
msgid "Should AlternC remove all databases (/var/lib/mysql/) ?" msgid "Should AlternC remove all databases (/var/lib/mysql/) ?"
msgstr "Les bases de données doivent elles être supprimés (/var/lib/mysql) ?" msgstr "Les bases de données doivent elles être supprimés (/var/lib/mysql) ?"
#. Type: boolean #. Type: boolean
#. Description #. Description
#: ../templates:19001 #: ../templates:20001
msgid "All users databases will be trashed" msgid "All users databases will be trashed"
msgstr "Toutes les bases de données des utilisateurs seront perdues" msgstr "Toutes les bases de données des utilisateurs seront perdues"
#. Type: boolean #. Type: boolean
#. Description #. Description
#: ../templates:20001 #: ../templates:21001
msgid "Should AlternC remove users datas ?" msgid "Should AlternC remove users datas ?"
msgstr "Les données des utilisateurs doivent elles êtres supprimés ?" msgstr "Les données des utilisateurs doivent elles êtres supprimés ?"
#. Type: boolean #. Type: boolean
#. Description #. Description
#: ../templates:20001 #: ../templates:21001
msgid "The files and apache redirections created by users will be trashed" msgid "The files and apache redirections created by users will be trashed"
msgstr "" msgstr ""
"Les fichiers et les redirections d'apache créés par les utilisateurs seront " "Les fichiers et les redirections d'apache créés par les utilisateurs seront "
@ -455,38 +487,38 @@ msgstr ""
#. Type: boolean #. Type: boolean
#. Description #. Description
#: ../templates:21001 #: ../templates:22001
msgid "Should AlternC remove bind zones ?" msgid "Should AlternC remove bind zones ?"
msgstr "Les zones de bind doivent elles être supprimées ?" msgstr "Les zones de bind doivent elles être supprimées ?"
#. Type: boolean #. Type: boolean
#. Description #. Description
#: ../templates:21001 #: ../templates:22001
msgid "It will delete all bind zones created by AlternC" msgid "It will delete all bind zones created by AlternC"
msgstr "Cela supprimera toutes les zone de bind créées par AlternC" msgstr "Cela supprimera toutes les zone de bind créées par AlternC"
#. Type: boolean #. Type: boolean
#. Description #. Description
#: ../templates:22001 #: ../templates:23001
msgid "Should AlternC remove mailboxes ?" msgid "Should AlternC remove mailboxes ?"
msgstr "Les boites mails doivent elles être supprimées ?" msgstr "Les boites mails doivent elles être supprimées ?"
#. Type: boolean #. Type: boolean
#. Description #. Description
#: ../templates:22001 #: ../templates:23001
msgid "If you accept all users e-mails will be deleted" msgid "If you accept all users e-mails will be deleted"
msgstr "" msgstr ""
"Si vous acceptez, toutes les e-mails des utilisateurs seront supprimées" "Si vous acceptez, toutes les e-mails des utilisateurs seront supprimées"
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:23001 #: ../templates:24001
msgid "Slave servers" msgid "Slave servers"
msgstr "Serveurs esclaves" msgstr "Serveurs esclaves"
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:23001 #: ../templates:24001
msgid "" msgid ""
"This is a space-separated list of servers that are \"slaves\" to the master " "This is a space-separated list of servers that are \"slaves\" to the master "
"server (this server). When writing apache configuration files, the master " "server (this server). When writing apache configuration files, the master "

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: anarcat@koumbit.org\n" "Report-Msgid-Bugs-To: anarcat@koumbit.org\n"
"POT-Creation-Date: 2009-07-27 17:24-0400\n" "POT-Creation-Date: 2011-05-22 20:29+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -45,15 +45,43 @@ msgstr ""
msgid "YOU HAVE BEEN WARNED." msgid "YOU HAVE BEEN WARNED."
msgstr "" msgstr ""
#. Type: string #. Type: note
#. Description #. Description
#: ../templates:2001 #: ../templates:2001
msgid "AlternC need ACL and QUOTA activated"
msgstr ""
#. Type: note
#. Description
#: ../templates:2001
msgid ""
"AlternC can't work without ACL activated on his file. Please check your /etc/"
"fstab to activate ACL for AlternC."
msgstr ""
#. Type: note
#. Description
#: ../templates:2001
msgid "Run /usr/lib/alternc/fixperms.sh once it's activated."
msgstr ""
#. Type: note
#. Description
#: ../templates:2001
msgid ""
"Also, you need to activate group quota (grpquota) to be able to use disk "
"quota."
msgstr ""
#. Type: string
#. Description
#: ../templates:3001
msgid "Fully qualified name of the desktop:" msgid "Fully qualified name of the desktop:"
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:2001 #: ../templates:3001
msgid "" msgid ""
"Please enter the fully qualified name of your server. This will be the " "Please enter the fully qualified name of your server. This will be the "
"domain part of the url you will use to access the virtual managment desktop. " "domain part of the url you will use to access the virtual managment desktop. "
@ -62,19 +90,19 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:2001 #: ../templates:3001
msgid "The default should be ok if your machine is correctly configured." msgid "The default should be ok if your machine is correctly configured."
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:3001 #: ../templates:4001
msgid "Name of your hosting service:" msgid "Name of your hosting service:"
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:3001 #: ../templates:4001
msgid "" msgid ""
"Please enter the name of your hosting service. It may be your company's name " "Please enter the name of your hosting service. It may be your company's name "
"or your personnal name or whatever you want to ..." "or your personnal name or whatever you want to ..."
@ -82,13 +110,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:4001 #: ../templates:5001
msgid "Name of the primary domain name server:" msgid "Name of the primary domain name server:"
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:4001 #: ../templates:5001
msgid "" msgid ""
"Please enter the fully qualified name of your primary dns server. It can be " "Please enter the fully qualified name of your primary dns server. It can be "
"this server since bind is installed and configured by AlternC. Anyway, if " "this server since bind is installed and configured by AlternC. Anyway, if "
@ -99,13 +127,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:5001 #: ../templates:6001
msgid "Name of the secondary domain name server:" msgid "Name of the secondary domain name server:"
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:5001 #: ../templates:6001
msgid "" msgid ""
"Please enter the fully qualified name of your secondary dns server. It can " "Please enter the fully qualified name of your secondary dns server. It can "
"be this server since bind is installed and configured by AlternC. Anyway, " "be this server since bind is installed and configured by AlternC. Anyway, "
@ -115,7 +143,7 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:5001 #: ../templates:6001
msgid "" msgid ""
"You may contact the AlternC's users mailing list if you want to exchange dns " "You may contact the AlternC's users mailing list if you want to exchange dns "
"service with other AlternC's users." "service with other AlternC's users."
@ -123,13 +151,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:6001 #: ../templates:7001
msgid "Name of the mysql server:" msgid "Name of the mysql server:"
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:6001 #: ../templates:7001
msgid "" msgid ""
"Please enter the fully qualified name of your mysql server host. On small " "Please enter the fully qualified name of your mysql server host. On small "
"systems, it IS \"localhost\" since you may have installed a local mysql " "systems, it IS \"localhost\" since you may have installed a local mysql "
@ -143,13 +171,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:7001 #: ../templates:8001
msgid "AlternC's mysql system database:" msgid "AlternC's mysql system database:"
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:7001 #: ../templates:8001
msgid "" msgid ""
"AlternC will create a mysql database to store it's system data. Please " "AlternC will create a mysql database to store it's system data. Please "
"choose the name of this database here. The default value should be good in " "choose the name of this database here. The default value should be good in "
@ -158,13 +186,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:8001 #: ../templates:9001
msgid "AlternC's mysql account:" msgid "AlternC's mysql account:"
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:8001 #: ../templates:9001
msgid "" msgid ""
"AlternC will create a mysql administrator account. Please choose it's " "AlternC will create a mysql administrator account. Please choose it's "
"username here. The default value should be good in most case." "username here. The default value should be good in most case."
@ -172,13 +200,13 @@ msgstr ""
#. Type: password #. Type: password
#. Description #. Description
#: ../templates:9001 #: ../templates:10001
msgid "Password of the AlternC's mysql account:" msgid "Password of the AlternC's mysql account:"
msgstr "" msgstr ""
#. Type: password #. Type: password
#. Description #. Description
#: ../templates:9001 #: ../templates:10001
msgid "" msgid ""
"AlternC requires an administrator account on the mysql server. It will be " "AlternC requires an administrator account on the mysql server. It will be "
"created automatically during the install process. Please choose a password " "created automatically during the install process. Please choose a password "
@ -187,7 +215,7 @@ msgstr ""
#. Type: password #. Type: password
#. Description #. Description
#: ../templates:9001 #: ../templates:10001
msgid "" msgid ""
"Please choose a quite complex password since it will have full access to the " "Please choose a quite complex password since it will have full access to the "
"system database !!!" "system database !!!"
@ -195,13 +223,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:10001 #: ../templates:11001
msgid "The server to GRANT permissions to:" msgid "The server to GRANT permissions to:"
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:10001 #: ../templates:11001
msgid "" msgid ""
"AlternC and MySQL can be installed on different servers. In order to have " "AlternC and MySQL can be installed on different servers. In order to have "
"GRANT table properly created and manipulated, this parameter must be set to " "GRANT table properly created and manipulated, this parameter must be set to "
@ -211,13 +239,13 @@ msgstr ""
#. Type: select #. Type: select
#. Description #. Description
#: ../templates:11001 #: ../templates:12001
msgid "The way backup rotation is executated" msgid "The way backup rotation is executated"
msgstr "" msgstr ""
#. Type: select #. Type: select
#. Description #. Description
#: ../templates:11001 #: ../templates:12001
msgid "" msgid ""
"AlternC enables users to configure their own backups, on demand, with " "AlternC enables users to configure their own backups, on demand, with "
"automatic rotation. This option determines how the backups are rotated." "automatic rotation. This option determines how the backups are rotated."
@ -225,7 +253,7 @@ msgstr ""
#. Type: select #. Type: select
#. Description #. Description
#: ../templates:11001 #: ../templates:12001
msgid "" msgid ""
"rotate - backup.sql, backup.sql.0, backup.sql.1 date - backup.sql, backup." "rotate - backup.sql, backup.sql.0, backup.sql.1 date - backup.sql, backup."
"sql.20080709, backup.sql.20080708" "sql.20080709, backup.sql.20080708"
@ -233,13 +261,13 @@ msgstr ""
#. Type: select #. Type: select
#. Description #. Description
#: ../templates:12001 #: ../templates:13001
msgid "Behavior of the backup script when it encounters a unmanaged file" msgid "Behavior of the backup script when it encounters a unmanaged file"
msgstr "" msgstr ""
#. Type: select #. Type: select
#. Description #. Description
#: ../templates:12001 #: ../templates:13001
msgid "" msgid ""
"The SQL backups can rename or overwrite existing files it doesn't know about " "The SQL backups can rename or overwrite existing files it doesn't know about "
"when doing backups. The default behavior is to skip those files and ignore " "when doing backups. The default behavior is to skip those files and ignore "
@ -248,13 +276,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:13001 #: ../templates:14001
msgid "The primary IP of this server:" msgid "The primary IP of this server:"
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:13001 #: ../templates:14001
msgid "" msgid ""
"AlternC will default the A records for domains it hosts to this address. In " "AlternC will default the A records for domains it hosts to this address. In "
"other words, this is the address everyone can reach to server at." "other words, this is the address everyone can reach to server at."
@ -262,13 +290,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:14001 #: ../templates:15001
msgid "The internal IP of this server:" msgid "The internal IP of this server:"
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:14001 #: ../templates:15001
msgid "" msgid ""
"AlternC will configure Apache and other services to listen to this address. " "AlternC will configure Apache and other services to listen to this address. "
"This is usually the same as the primary IP of the server, unless the server " "This is usually the same as the primary IP of the server, unless the server "
@ -277,19 +305,19 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:14001 #: ../templates:15001
msgid "In other words, this is the IP address of eth0." msgid "In other words, this is the IP address of eth0."
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:15001 #: ../templates:16001
msgid "The default MX to assign to new domains:" msgid "The default MX to assign to new domains:"
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:15001 #: ../templates:16001
msgid "" msgid ""
"AlternC will assign this hostname as the MX record for all the domains it " "AlternC will assign this hostname as the MX record for all the domains it "
"hosts. It is usually better be left alone." "hosts. It is usually better be left alone."
@ -297,13 +325,13 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:16001 #: ../templates:17001
msgid "The path where AlternC is installed:" msgid "The path where AlternC is installed:"
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:16001 #: ../templates:17001
msgid "" msgid ""
"Please enter the partition name where alternc is installed. This is used " "Please enter the partition name where alternc is installed. This is used "
"mainly for disk quotas." "mainly for disk quotas."
@ -311,19 +339,19 @@ msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:16001 #: ../templates:17001
msgid "Warning : Be careful ! It can generate some problems." msgid "Warning : Be careful ! It can generate some problems."
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:17001 #: ../templates:18001
msgid "The monitoring server:" msgid "The monitoring server:"
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:17001 #: ../templates:18001
msgid "" msgid ""
"The IP address (or ip/prefix) of the server(s) which must be authorized to " "The IP address (or ip/prefix) of the server(s) which must be authorized to "
"ping us and access apache status pages. Completely optional." "ping us and access apache status pages. Completely optional."
@ -331,13 +359,13 @@ msgstr ""
#. Type: note #. Type: note
#. Description #. Description
#: ../templates:18001 #: ../templates:19001
msgid "POP Before SMTP deprecated" msgid "POP Before SMTP deprecated"
msgstr "" msgstr ""
#. Type: note #. Type: note
#. Description #. Description
#: ../templates:18001 #: ../templates:19001
msgid "" msgid ""
"AlternC doesn't automatically configure the pop-before-smtp package anymore, " "AlternC doesn't automatically configure the pop-before-smtp package anymore, "
"since it is correctly configured for SASL authentification these days. If " "since it is correctly configured for SASL authentification these days. If "
@ -346,13 +374,13 @@ msgstr ""
#. Type: note #. Type: note
#. Description #. Description
#: ../templates:18001 #: ../templates:19001
msgid "# For Courier-POP3 and Courier-IMAP:" msgid "# For Courier-POP3 and Courier-IMAP:"
msgstr "" msgstr ""
#. Type: note #. Type: note
#. Description #. Description
#: ../templates:18001 #: ../templates:19001
msgid "" msgid ""
"in the /etc/pop-before-smtp/pop-before-smtp.conf and uncomment it. hash:/var/" "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 /" "lib/pop-before-smtp/hosts must also be added to the mynetworks directive of /"
@ -361,61 +389,61 @@ msgstr ""
#. Type: boolean #. Type: boolean
#. Description #. Description
#: ../templates:19001 #: ../templates:20001
msgid "Should AlternC remove all databases (/var/lib/mysql/) ?" msgid "Should AlternC remove all databases (/var/lib/mysql/) ?"
msgstr "" msgstr ""
#. Type: boolean #. Type: boolean
#. Description #. Description
#: ../templates:19001 #: ../templates:20001
msgid "All users databases will be trashed" msgid "All users databases will be trashed"
msgstr "" msgstr ""
#. Type: boolean #. Type: boolean
#. Description #. Description
#: ../templates:20001 #: ../templates:21001
msgid "Should AlternC remove users datas ?" msgid "Should AlternC remove users datas ?"
msgstr "" msgstr ""
#. Type: boolean #. Type: boolean
#. Description #. Description
#: ../templates:20001 #: ../templates:21001
msgid "The files and apache redirections created by users will be trashed" msgid "The files and apache redirections created by users will be trashed"
msgstr "" msgstr ""
#. Type: boolean #. Type: boolean
#. Description #. Description
#: ../templates:21001 #: ../templates:22001
msgid "Should AlternC remove bind zones ?" msgid "Should AlternC remove bind zones ?"
msgstr "" msgstr ""
#. Type: boolean #. Type: boolean
#. Description #. Description
#: ../templates:21001 #: ../templates:22001
msgid "It will delete all bind zones created by AlternC" msgid "It will delete all bind zones created by AlternC"
msgstr "" msgstr ""
#. Type: boolean #. Type: boolean
#. Description #. Description
#: ../templates:22001 #: ../templates:23001
msgid "Should AlternC remove mailboxes ?" msgid "Should AlternC remove mailboxes ?"
msgstr "" msgstr ""
#. Type: boolean #. Type: boolean
#. Description #. Description
#: ../templates:22001 #: ../templates:23001
msgid "If you accept all users e-mails will be deleted" msgid "If you accept all users e-mails will be deleted"
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:23001 #: ../templates:24001
msgid "Slave servers" msgid "Slave servers"
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:23001 #: ../templates:24001
msgid "" msgid ""
"This is a space-separated list of servers that are \"slaves\" to the master " "This is a space-separated list of servers that are \"slaves\" to the master "
"server (this server). When writing apache configuration files, the master " "server (this server). When writing apache configuration files, the master "

2
debian/rules vendored
View File

@ -68,6 +68,8 @@ install: build
done ;\ done ;\
done done
chown alterncpanel:alterncpanel debian/alternc/var/alternc/html/*
# Ex old alternc-admintools # Ex old alternc-admintools
install tools/top_http_users debian/alternc/usr/bin install tools/top_http_users debian/alternc/usr/bin
install tools/top_mysql_users debian/alternc/usr/bin install tools/top_mysql_users debian/alternc/usr/bin

11
debian/templates vendored
View File

@ -11,6 +11,17 @@ _Description: Do you REALLY want to install AlternC on this computer ?
. .
YOU HAVE BEEN WARNED. YOU HAVE BEEN WARNED.
Template: alternc/warningaclquota
Type: note
_Description: AlternC need ACL and QUOTA activated
AlternC can't work without ACL activated on his file.
Please check your /etc/fstab to activate ACL for AlternC.
.
Run /usr/lib/alternc/fixperms.sh once it's activated.
.
Also, you need to activate group quota (grpquota)
to be able to use disk quota.
Template: alternc/desktopname Template: alternc/desktopname
Type: string Type: string
_Description: Fully qualified name of the desktop: _Description: Fully qualified name of the desktop:

View File

@ -320,13 +320,16 @@ done
# Last touches # Last touches
# #
chown alterncpanel:alterncpanel "$ALTERNC_LOC/html/"*
setfacl -b -k -m d:g:alterncpanel:rw- -m g:alterncpanel:rw- "$ALTERNC_LOC/html/"*
# Creating admin user if needed # Creating admin user if needed
HAS_ROOT=`mysql --defaults-file=/etc/alternc/my.cnf -e "SELECT COUNT(*) FROM membres WHERE login = 'admin' OR login = 'root' and su = 1" | tail -1` HAS_ROOT=`mysql --defaults-file=/etc/alternc/my.cnf -e "SELECT COUNT(*) FROM membres WHERE login = 'admin' OR login = 'root' and su = 1" | tail -1`
if [ "$HAS_ROOT" != "1" ]; then if [ "$HAS_ROOT" != "1" ]; then
echo "Creating admin user..." echo "Creating admin user..."
echo "" echo ""
if su - alterncpanel -c /usr/share/alternc/install/newone.php if su - alterncpanel -s /bin/bash -c /usr/share/alternc/install/newone.php
then then
echo "*******************************************" echo "*******************************************"
echo "* *" echo "* *"

View File

@ -31,8 +31,8 @@ LIBS=functions.sh functions_hosting.sh functions_dns.sh
BIN=$(DESTDIR)/usr/lib/alternc/ BIN=$(DESTDIR)/usr/lib/alternc/
install: install:
chown root:www-data $(BIN) chown root:alterncpanel $(BIN)
chmod 755 $(BIN) chmod 755 $(BIN)
install -o root -g www-data -m4750 $(SETUID) du.pl $(BIN) install -o root -g alterncpanel -m4750 $(SETUID) du.pl $(BIN)
install -o root -g www-data -m0750 $(SCRIPTS) $(BIN) install -o root -g alterncpanel -m0750 $(SCRIPTS) $(BIN)
install -o root -g www-data -m0644 $(LIBS) $(BIN) install -o root -g alterncpanel -m0644 $(LIBS) $(BIN)

View File

@ -62,7 +62,9 @@ doone() {
# Delete existings ACL # Delete existings ACL
# Set the defaults acl on all the files # Set the defaults acl on all the files
setfacl -b -k -m d:g:alterncpanel:rw- -R "$REP" \; setfacl -b -k -m d:g:alterncpanel:rw- -m d:u:$GID:rw- -m d:g:$GID:rw- \
-m g:alterncpanel:rw- -m u:$GID:rw- -m g:$GID:rw- \
-R "$REP"
read GID LOGIN read GID LOGIN
done done

View File

@ -33,7 +33,7 @@ for my $p (@create_paths) {
mkdir($p); mkdir($p);
chown($uid, $uid, $p); chown($uid, $uid, $p);
system("/bin/chmod 02770 '$p'"); system("/bin/chmod 02770 '$p'");
system("/usr/bin/setfacl -m d:g:alterncpanel:rw- -m d:u:$uid:rw- -m d:g:$uid:rw- '$p'"); system("/usr/bin/setfacl -m d:g:alterncpanel:rw- -m d:u:$uid:rw- -m d:g:$uid:rw- -m g:alterncpanel:rw- -m u:$uid:rw- -m g:$uid:rw- '$p'");
} }
0; 0;