mirror of
https://github.com/YunoHost-Apps/spip_ynh.git
synced 2024-09-03 20:25:59 +02:00
Donne un accès public pour curl
This commit is contained in:
parent
e2d1a9d8e6
commit
de762e4977
1 changed files with 6 additions and 0 deletions
|
@ -59,10 +59,16 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/spip.conf
|
||||||
|
|
||||||
POOL_FPM
|
POOL_FPM
|
||||||
|
|
||||||
|
# Donne un accès public pour curl
|
||||||
|
ynh_app_setting_set $app unprotected_uris "/"
|
||||||
|
|
||||||
# Reload Nginx and regenerate SSOwat conf
|
# Reload Nginx and regenerate SSOwat conf
|
||||||
sudo service php5-fpm restart
|
sudo service php5-fpm restart
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
|
|
||||||
|
# Régénère la configuration de SSOwat
|
||||||
|
sudo yunohost app ssowatconf
|
||||||
|
|
||||||
if [ "$is_public" = "No" ];
|
if [ "$is_public" = "No" ];
|
||||||
then
|
then
|
||||||
# Retire l'accès public
|
# Retire l'accès public
|
||||||
|
|
Loading…
Reference in a new issue