浏览代码

freedns code for nextcloud

Bob Mottram 8 年前
父节点
当前提交
a7f21e2cc1
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 1
    6
      src/freedombone-app-nextcloud

+ 1
- 6
src/freedombone-app-nextcloud 查看文件

@@ -93,11 +93,6 @@ function install_interactive_nextcloud {
93 93
                 255) exit 1;;
94 94
             esac
95 95
             NEXTCLOUD_DOMAIN_NAME=$(cat $data | sed -n 1p)
96
-            title=$(cat $data | sed -n 2p)
97
-            if [ ${#title} -gt 1 ]; then
98
-                NEXTCLOUD_TITLE=$welcome_msg
99
-            fi
100
-            img_url=$(cat $data | sed -n 3p)
101 96
             if [ ${#img_url} -gt 1 ]; then
102 97
                 NEXTCLOUD_BACKGROUND_IMAGE_URL=$img_url
103 98
             fi
@@ -109,7 +104,7 @@ function install_interactive_nextcloud {
109 104
                     dialog --title $"Domain name validation" --msgbox "$TEST_DOMAIN_NAME" 15 50
110 105
                 else
111 106
                     if [[ $DDNS_PROVIDER == "default@freedns.afraid.org" ]]; then
112
-                        NEXTCLOUD_CODE=$(cat $data | sed -n 4p)
107
+                        NEXTCLOUD_CODE=$(cat $data | sed -n 2p)
113 108
                         validate_freedns_code "$NEXTCLOUD_CODE"
114 109
                         if [ ! $VALID_CODE ]; then
115 110
                             NEXTCLOUD_DOMAIN_NAME=