This commit is contained in:
Bob Mottram 2016-12-18 16:02:08 +00:00
parent 38ce7665d1
commit f926bc170d
1 changed files with 2 additions and 2 deletions

View File

@ -575,7 +575,7 @@ function install_turtl_app {
# change settings
sed -i "s|api_url.*|api_url: 'https://api.${TURTL_DOMAIN_NAME}'|g" /var/www/$TURTL_DOMAIN_NAME/htdocs/config/config.js
sed -i "s|site_url.*|api_url: 'https://${TURTL_DOMAIN_NAME}'|g" /var/www/$TURTL_DOMAIN_NAME/htdocs/config/config.js
sed -i "s|site_url.*|site_url: 'https://${TURTL_DOMAIN_NAME}'|g" /var/www/$TURTL_DOMAIN_NAME/htdocs/config/config.js
chown -R turtl:turtl /var/www/$TURTL_DOMAIN_NAME/htdocs
@ -643,7 +643,7 @@ function install_turtl_app {
echo '}' >> $turtl_nginx_site
else
sed -i "s|api_url.*|api_url: 'http://${TURTL_API_ONION_HOSTNAME}'|g" /var/www/$TURTL_DOMAIN_NAME/htdocs/config/config.js
sed -i "s|site_url.*|api_url: 'http://${TURTL_ONION_HOSTNAME}'|g" /var/www/$TURTL_DOMAIN_NAME/htdocs/config/config.js
sed -i "s|site_url.*|site_url: 'http://${TURTL_ONION_HOSTNAME}'|g" /var/www/$TURTL_DOMAIN_NAME/htdocs/config/config.js
echo -n '' > $turtl_nginx_site
fi
echo 'server {' >> $turtl_nginx_site