Setting friendica directory
This commit is contained in:
parent
aa27f6c6c3
commit
5e3fed335e
|
@ -113,15 +113,15 @@ function friendica_channel_directory_server {
|
|||
case $sel in
|
||||
0)
|
||||
friendica_domain_server=$(<$data)
|
||||
if [[ $friendica_domain_server != *"."* ]]; then
|
||||
if [[ "$friendica_domain_server" != *"."* ]]; then
|
||||
return
|
||||
fi
|
||||
if [[ $friendica_domain_server != "https"* ]]; then
|
||||
if [[ "$friendica_domain_server" != "https"* ]]; then
|
||||
dialog --title $"Friendica channel directory server" \
|
||||
--msgbox $"Invalid domain - include the https://" 6 40
|
||||
return
|
||||
fi
|
||||
./var/www/$FRIENDICA_DOMAIN_NAME/htdocs/util/config system directory_server $friendica_domain_server
|
||||
sed -i "s|['directory'] = .*|['directory'] = '$friendica_domain_server';|g" /var/www/$FRIENDICA_DOMAIN_NAME/htdocs/.htconfig.php
|
||||
dialog --title $"Friendica channel directory server" \
|
||||
--msgbox $"Domain channel directory server changed to $friendica_domain_server" 6 40
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue