freedns code for nextcloud

This commit is contained in:
Bob Mottram 2017-03-14 21:59:43 +00:00
parent a445707bff
commit a7f21e2cc1
1 changed files with 1 additions and 6 deletions

View File

@ -93,11 +93,6 @@ function install_interactive_nextcloud {
255) exit 1;; 255) exit 1;;
esac esac
NEXTCLOUD_DOMAIN_NAME=$(cat $data | sed -n 1p) NEXTCLOUD_DOMAIN_NAME=$(cat $data | sed -n 1p)
title=$(cat $data | sed -n 2p)
if [ ${#title} -gt 1 ]; then
NEXTCLOUD_TITLE=$welcome_msg
fi
img_url=$(cat $data | sed -n 3p)
if [ ${#img_url} -gt 1 ]; then if [ ${#img_url} -gt 1 ]; then
NEXTCLOUD_BACKGROUND_IMAGE_URL=$img_url NEXTCLOUD_BACKGROUND_IMAGE_URL=$img_url
fi fi
@ -109,7 +104,7 @@ function install_interactive_nextcloud {
dialog --title $"Domain name validation" --msgbox "$TEST_DOMAIN_NAME" 15 50 dialog --title $"Domain name validation" --msgbox "$TEST_DOMAIN_NAME" 15 50
else else
if [[ $DDNS_PROVIDER == "default@freedns.afraid.org" ]]; then if [[ $DDNS_PROVIDER == "default@freedns.afraid.org" ]]; then
NEXTCLOUD_CODE=$(cat $data | sed -n 4p) NEXTCLOUD_CODE=$(cat $data | sed -n 2p)
validate_freedns_code "$NEXTCLOUD_CODE" validate_freedns_code "$NEXTCLOUD_CODE"
if [ ! $VALID_CODE ]; then if [ ! $VALID_CODE ]; then
NEXTCLOUD_DOMAIN_NAME= NEXTCLOUD_DOMAIN_NAME=