From a7985b5567cadc275c20570780a2ef0da6ece62e Mon Sep 17 00:00:00 2001 From: zamentur Date: Fri, 10 Jun 2016 12:09:26 +0200 Subject: [PATCH] [fix] Curl doesn't work if dns is not set --- scripts/install | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index f3b3361..9098bf5 100644 --- a/scripts/install +++ b/scripts/install @@ -68,11 +68,10 @@ sudo yunohost app setting yourls unprotected_uris -v "/" sudo yunohost app ssowatconf # Start Yourls install (database table creation) -curl -kL -X POST https://$domain$path/admin/install.php --data "install=dummy" > /dev/null 2>&1 +curl --header "Host: $domain" -kL -X POST https://127.0.0.1$path/admin/install.php --data "install=Install+YOURLS" > /dev/null 2>&1 # Activate auth plugin mysql -u $db_user -p$db_pwd $db_user < ../conf/activate_plugins.sql sudo yunohost app setting yourls protected_uris -v "/admin" sudo service nginx reload sudo yunohost app ssowatconf -