Updating config script to ask question about alternc html mail and logs directories
This commit is contained in:
parent
eb11bb790d
commit
6bac69eca4
|
@ -1,6 +1,7 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
# Source debconf library.
|
# Source debconf library.
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
|
@ -84,7 +85,7 @@ SQLBACKUP_TYPE="rotate"
|
||||||
SQLBACKUP_OVERWRITE="no"
|
SQLBACKUP_OVERWRITE="no"
|
||||||
QUEST_STATE=1
|
QUEST_STATE=1
|
||||||
|
|
||||||
while [ "$QUEST_STATE" != 0 -a "$QUEST_STATE" != 11 ]; do
|
while [ "$QUEST_STATE" != 0 -a "$QUEST_STATE" != 13 ]; do
|
||||||
case "$QUEST_STATE" in
|
case "$QUEST_STATE" in
|
||||||
1)
|
1)
|
||||||
if [ -r /etc/alternc/local.sh ]; then
|
if [ -r /etc/alternc/local.sh ]; then
|
||||||
|
@ -181,8 +182,12 @@ while [ "$QUEST_STATE" != 0 -a "$QUEST_STATE" != 11 ]; do
|
||||||
;;
|
;;
|
||||||
10)
|
10)
|
||||||
# We need to set the alternc_location here because we have to test for quotas and acls
|
# We need to set the alternc_location here because we have to test for quotas and acls
|
||||||
db_set alternc/alternc_html "$ALTERNC_HTML"
|
|
||||||
|
|
||||||
|
db_get alternc/alternc_html
|
||||||
|
if [ -z "$RET" ];then
|
||||||
|
db_set alternc/alternc_html $ALTERNC_HTML
|
||||||
|
db_input high alternc/alternc_html
|
||||||
|
fi
|
||||||
db_get alternc/alternc_html
|
db_get alternc/alternc_html
|
||||||
LOCATION="$RET"
|
LOCATION="$RET"
|
||||||
#checking acl and quota activation, does't work with NFS yet. should now work with lxc
|
#checking acl and quota activation, does't work with NFS yet. should now work with lxc
|
||||||
|
@ -212,6 +217,20 @@ while [ "$QUEST_STATE" != 0 -a "$QUEST_STATE" != 11 ]; do
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
11)
|
||||||
|
db_get alternc/alternc_mail
|
||||||
|
if [ -z "$RET" ];then
|
||||||
|
db_set alternc/alternc_mail $ALTERNC_MAIL
|
||||||
|
db_input high alternc/alternc_mail
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
12)
|
||||||
|
db_get alternc/alternc_logs
|
||||||
|
if [ -z "$RET" ];then
|
||||||
|
db_set alternc/alternc_logs $ALTERNC_LOGS
|
||||||
|
db_input high alternc/alternc_logs
|
||||||
|
fi
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
if db_go; then
|
if db_go; then
|
||||||
QUEST_STATE=$(($QUEST_STATE + 1))
|
QUEST_STATE=$(($QUEST_STATE + 1))
|
||||||
|
|
|
@ -50,6 +50,26 @@ _Description: Name of the secondary domain name server:
|
||||||
AlternC's team is providing any user of AlternC with free DNS service.
|
AlternC's team is providing any user of AlternC with free DNS service.
|
||||||
go to http://alternc.net/ to create an account and use it.
|
go to http://alternc.net/ to create an account and use it.
|
||||||
|
|
||||||
|
Template: alternc/alternc_html
|
||||||
|
Type: string
|
||||||
|
_Description: The path where alternc's users html files will be put
|
||||||
|
Please enter the directory name where you want html user files to be put.
|
||||||
|
The default value should be good in most cases.
|
||||||
|
.
|
||||||
|
This directory wil contain every alternc users personnal directories.
|
||||||
|
|
||||||
|
Template: alternc/alternc_mail
|
||||||
|
Type: string
|
||||||
|
_Description: The path where alternc's users mails will be put
|
||||||
|
Please enter the directory name where you want to put your users maildirs.
|
||||||
|
The default value should be good in most cases.
|
||||||
|
|
||||||
|
Template: alternc/alternc_logs
|
||||||
|
Type: string
|
||||||
|
_Description: The path where alternc's logs files will be placed
|
||||||
|
Please enter the directory name where you want to put your log files.
|
||||||
|
The default value should be good in most cases.
|
||||||
|
|
||||||
Template: alternc/mysql/host
|
Template: alternc/mysql/host
|
||||||
Type: string
|
Type: string
|
||||||
_Description: Name of the mysql server:
|
_Description: Name of the mysql server:
|
||||||
|
|
Loading…
Reference in New Issue