Browse Source

Show existing directory server

Bob Mottram 8 years ago
parent
commit
c4a023bcab
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/freedombone-app-friendica

+ 3
- 1
src/freedombone-app-friendica View File

104
         return
104
         return
105
     fi
105
     fi
106
 
106
 
107
+    CURR_DIR_SERVER=$(cat /var/www/$FRIENDICA_DOMAIN_NAME/htdocs/.htconfig.php | grep directory | awk -F "'" '{print $6}')
108
+
107
     data=$(tempfile 2>/dev/null)
109
     data=$(tempfile 2>/dev/null)
108
     trap "rm -f $data" 0 1 2 5 15
110
     trap "rm -f $data" 0 1 2 5 15
109
     dialog --title $"Friendica channel directory server" \
111
     dialog --title $"Friendica channel directory server" \
110
            --backtitle $"Freedombone Control Panel" \
112
            --backtitle $"Freedombone Control Panel" \
111
-           --inputbox $"When you click on 'channel directory' this is where Friendica will obtain its list from" 8 60 2>$data
113
+           --inputbox $"When you click on 'channel directory' this is where Friendica will obtain its list from" 8 60 "$CURR_DIR_SERVER" 2>$data
112
     sel=$?
114
     sel=$?
113
     case $sel in
115
     case $sel in
114
         0)
116
         0)