浏览代码

Setting friendica directory

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

+ 3
- 3
src/freedombone-app-friendica 查看文件

@@ -113,15 +113,15 @@ function friendica_channel_directory_server {
113 113
     case $sel in
114 114
         0)
115 115
             friendica_domain_server=$(<$data)
116
-            if [[ $friendica_domain_server != *"."* ]]; then
116
+            if [[ "$friendica_domain_server" != *"."* ]]; then
117 117
                 return
118 118
             fi
119
-            if [[ $friendica_domain_server != "https"* ]]; then
119
+            if [[ "$friendica_domain_server" != "https"* ]]; then
120 120
                 dialog --title $"Friendica channel directory server" \
121 121
                        --msgbox $"Invalid domain - include the https://" 6 40
122 122
                 return
123 123
             fi
124
-            ./var/www/$FRIENDICA_DOMAIN_NAME/htdocs/util/config system directory_server $friendica_domain_server
124
+            sed -i "s|['directory'] = .*|['directory'] = '$friendica_domain_server';|g" /var/www/$FRIENDICA_DOMAIN_NAME/htdocs/.htconfig.php
125 125
             dialog --title $"Friendica channel directory server" \
126 126
                    --msgbox $"Domain channel directory server changed to $friendica_domain_server" 6 40
127 127
             ;;