Преглед изворни кода

Show existing directory server

Bob Mottram пре 8 година
родитељ
комит
c4a023bcab
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3
    1
      src/freedombone-app-friendica

+ 3
- 1
src/freedombone-app-friendica Прегледај датотеку

@@ -104,11 +104,13 @@ function friendica_channel_directory_server {
104 104
         return
105 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 109
     data=$(tempfile 2>/dev/null)
108 110
     trap "rm -f $data" 0 1 2 5 15
109 111
     dialog --title $"Friendica channel directory server" \
110 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 114
     sel=$?
113 115
     case $sel in
114 116
         0)