mirror of
https://github.com/YunoHost-Apps/spip_ynh.git
synced 2024-09-03 20:25:59 +02:00
Source SPIP + md5
This commit is contained in:
parent
de762e4977
commit
b2e20e1b27
3 changed files with 12 additions and 10 deletions
|
@ -31,7 +31,7 @@
|
|||
"en": "Choose a domain name for SPIP",
|
||||
"fr": "Choisissez un nom de domaine pour SPIP"
|
||||
},
|
||||
"example": "example.com"
|
||||
"example": "example.org"
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
|
@ -40,8 +40,8 @@
|
|||
"en": "Choose a path for SPIP",
|
||||
"fr": "Choisissez un chemin pour SPIP"
|
||||
},
|
||||
"example": "/example",
|
||||
"default": "/example"
|
||||
"example": "/spip",
|
||||
"default": "/spip"
|
||||
},
|
||||
{
|
||||
"name": "admin",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
96a7fef92ebff098e8b5bb8130a86d39 spip-3.1.zip
|
||||
61fee69d15b9e3154ad1a3be596cb0fa spip-3.1.zip
|
Loading…
Reference in a new issue