1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yourls_ynh.git synced 2024-09-03 20:35:59 +02:00

[fix] Curl doesn't work if dns is not set

This commit is contained in:
zamentur 2016-06-10 12:09:26 +02:00
parent 81d4aaf1f4
commit a7985b5567

View file

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