Show existing directory server

This commit is contained in:
Bob Mottram 2017-04-07 17:58:11 +01:00
parent 23c49ded06
commit c4a023bcab
1 changed files with 3 additions and 1 deletions

View File

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