From b2e20e1b27571ec8fb324b1739069b4514c3a84d Mon Sep 17 00:00:00 2001 From: magikcypress Date: Tue, 21 Feb 2017 18:00:37 +0100 Subject: [PATCH] Source SPIP + md5 --- manifest.json | 12 ++++++------ scripts/install | 8 +++++--- sources/source_md5 | 2 +- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/manifest.json b/manifest.json index dad3e8e..0b58a0f 100644 --- a/manifest.json +++ b/manifest.json @@ -26,26 +26,26 @@ "install" : [ { "name": "domain", - "type": "domain", + "type": "domain", "ask": { "en": "Choose a domain name for SPIP", "fr": "Choisissez un nom de domaine pour SPIP" }, - "example": "example.com" + "example": "example.org" }, { "name": "path", - "type": "path", + "type": "path", "ask": { "en": "Choose a path for SPIP", "fr": "Choisissez un chemin pour SPIP" }, - "example": "/example", - "default": "/example" + "example": "/spip", + "default": "/spip" }, { "name": "admin", - "type": "user", + "type": "user", "ask": { "en": "Choose an admin user", "fr": "Choisissez l’administrateur" diff --git a/scripts/install b/scripts/install index cbbea49..d3df6bb 100644 --- a/scripts/install +++ b/scripts/install @@ -52,6 +52,8 @@ SETUP_SOURCE "spip-3.1.zip" # Set permissions to spip directory sudo chown -R www-data: $final_path +echo -e "127.0.0.1 $domain #SPIP" | sudo tee -a /etc/hosts + # Modify Nginx configuration file and copy it to Nginx conf directory sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf sed -i "s@ALIASTOCHANGE@$final_path@g" ../conf/nginx.conf @@ -62,13 +64,13 @@ POOL_FPM # Donne un accès public pour curl ynh_app_setting_set $app unprotected_uris "/" +# Régénère la configuration de SSOwat +sudo yunohost app ssowatconf + # Reload Nginx and regenerate SSOwat conf sudo service php5-fpm restart sudo service nginx reload -# Régénère la configuration de SSOwat -sudo yunohost app ssowatconf - if [ "$is_public" = "No" ]; then # Retire l'accès public diff --git a/sources/source_md5 b/sources/source_md5 index 69bd34d..6347c2e 100644 --- a/sources/source_md5 +++ b/sources/source_md5 @@ -1 +1 @@ -96a7fef92ebff098e8b5bb8130a86d39 spip-3.1.zip \ No newline at end of file +61fee69d15b9e3154ad1a3be596cb0fa spip-3.1.zip \ No newline at end of file