More fixing of interactive install
This commit is contained in:
parent
3724fb8a16
commit
4d9298f483
|
@ -94,6 +94,7 @@ VERSION="1.00"
|
|||
|
||||
# Different system variants which may be specified within
|
||||
# the SYSTEM_TYPE option
|
||||
VARIANT_FULL="full"
|
||||
VARIANT_WRITER="writer"
|
||||
VARIANT_CLOUD="cloud"
|
||||
VARIANT_CHAT="chat"
|
||||
|
@ -402,6 +403,7 @@ function interactive_configuration {
|
|||
255) exit 0;;
|
||||
esac
|
||||
case $(cat $data) in
|
||||
1) SYSTEM_TYPE=$VARIANT_FULL;;
|
||||
2) SYSTEM_TYPE=$VARIANT_WRITER;;
|
||||
3) SYSTEM_TYPE=$VARIANT_CLOUD;;
|
||||
4) SYSTEM_TYPE=$VARIANT_CHAT;;
|
||||
|
@ -427,6 +429,10 @@ function interactive_configuration {
|
|||
echo 'No user account was selected'
|
||||
exit 0
|
||||
fi
|
||||
if [ ! -d /home/$MY_USERNAME ]; then
|
||||
echo "The directory /home/$MY_USERNAME does not exist"
|
||||
exit 6437
|
||||
fi
|
||||
|
||||
dialog --title "Install Target" \
|
||||
--backtitle "Freedombone Configuration" \
|
||||
|
@ -559,7 +565,7 @@ function interactive_configuration {
|
|||
255) exit 0;;
|
||||
esac
|
||||
|
||||
if [[ $SYSTEM_TYPE==$VARIANT_WRITER || ! $SYSTEM_TYPE ]]; then
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_WRITER" || $SYSTEM_TYPE == "$VARIANT_FULL" ]]; then
|
||||
dialog --backtitle "Freedombone Configuration" \
|
||||
--inputbox "Wiki Title" 10 30 2> $data
|
||||
sel=$?
|
||||
|
@ -605,7 +611,7 @@ function interactive_configuration {
|
|||
fi
|
||||
fi
|
||||
|
||||
if [[ $SYSTEM_TYPE==$VARIANT_WRITER || ! $SYSTEM_TYPE ]]; then
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_WRITER" || $SYSTEM_TYPE == "$VARIANT_FULL" ]]; then
|
||||
dialog --backtitle "Freedombone Configuration" \
|
||||
--inputbox "Blog Title" 10 30 2> $data
|
||||
sel=$?
|
||||
|
@ -644,8 +650,7 @@ function interactive_configuration {
|
|||
fi
|
||||
fi
|
||||
|
||||
|
||||
if [[ $SYSTEM_TYPE==$VARIANT_CLOUD || ! $SYSTEM_TYPE ]]; then
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_CLOUD" || $SYSTEM_TYPE == "$VARIANT_FULL" ]]; then
|
||||
dialog --backtitle "Freedombone Configuration" \
|
||||
--inputbox "Owncloud domain name" 10 30 2> $data
|
||||
sel=$?
|
||||
|
@ -678,7 +683,7 @@ function interactive_configuration {
|
|||
fi
|
||||
fi
|
||||
|
||||
if [[ $SYSTEM_TYPE==$VARIANT_SOCIAL || ! $SYSTEM_TYPE ]]; then
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_SOCIAL" || $SYSTEM_TYPE == "$VARIANT_FULL" ]]; then
|
||||
dialog --backtitle "Freedombone Configuration" \
|
||||
--inputbox "RedMatrix domain name" 10 30 2> $data
|
||||
sel=$?
|
||||
|
@ -711,7 +716,7 @@ function interactive_configuration {
|
|||
fi
|
||||
fi
|
||||
|
||||
if [[ $SYSTEM_TYPE==$VARIANT_SOCIAL || ! $SYSTEM_TYPE ]]; then
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_SOCIAL" || $SYSTEM_TYPE == "$VARIANT_FULL" ]]; then
|
||||
dialog --backtitle "Freedombone Configuration" \
|
||||
--inputbox "Microblog domain name" 10 30 2> $data
|
||||
sel=$?
|
||||
|
@ -767,7 +772,7 @@ function interactive_configuration {
|
|||
fi
|
||||
|
||||
dialog --backtitle "Freedombone Configuration" \
|
||||
--inputbox "Your email address" 10 30 $MY_USERNAME@$DOMAIN_NAME> $data
|
||||
--inputbox "Your email address" 10 30 "$MY_USERNAME@$DOMAIN_NAME" 2> $data
|
||||
sel=$?
|
||||
case $sel in
|
||||
0) MY_EMAIL_ADDRESS=$(cat $data);;
|
||||
|
|
Loading…
Reference in New Issue