Skip to content
Snippets Groups Projects
Commit a7f21e2c authored by Bob Mottram's avatar Bob Mottram
Browse files

freedns code for nextcloud

parent a445707b
No related branches found
No related tags found
No related merge requests found
......@@ -93,11 +93,6 @@ function install_interactive_nextcloud {
255) exit 1;;
esac
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
NEXTCLOUD_BACKGROUND_IMAGE_URL=$img_url
fi
......@@ -109,7 +104,7 @@ function install_interactive_nextcloud {
dialog --title $"Domain name validation" --msgbox "$TEST_DOMAIN_NAME" 15 50
else
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"
if [ ! $VALID_CODE ]; then
NEXTCLOUD_DOMAIN_NAME=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment