|
@@ -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
|
;;
|