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
|
@ -26,26 +26,26 @@
|
||||||
"install" : [
|
"install" : [
|
||||||
{
|
{
|
||||||
"name": "domain",
|
"name": "domain",
|
||||||
"type": "domain",
|
"type": "domain",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Choose a domain name for SPIP",
|
"en": "Choose a domain name for SPIP",
|
||||||
"fr": "Choisissez un nom de domaine pour SPIP"
|
"fr": "Choisissez un nom de domaine pour SPIP"
|
||||||
},
|
},
|
||||||
"example": "example.com"
|
"example": "example.org"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "path",
|
"name": "path",
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Choose a path for SPIP",
|
"en": "Choose a path for SPIP",
|
||||||
"fr": "Choisissez un chemin pour SPIP"
|
"fr": "Choisissez un chemin pour SPIP"
|
||||||
},
|
},
|
||||||
"example": "/example",
|
"example": "/spip",
|
||||||
"default": "/example"
|
"default": "/spip"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "admin",
|
"name": "admin",
|
||||||
"type": "user",
|
"type": "user",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Choose an admin user",
|
"en": "Choose an admin user",
|
||||||
"fr": "Choisissez l’administrateur"
|
"fr": "Choisissez l’administrateur"
|
||||||
|
|
|
@ -52,6 +52,8 @@ SETUP_SOURCE "spip-3.1.zip"
|
||||||
# Set permissions to spip directory
|
# Set permissions to spip directory
|
||||||
sudo chown -R www-data: $final_path
|
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
|
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||||
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
||||||
sed -i "s@ALIASTOCHANGE@$final_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
|
# Donne un accès public pour curl
|
||||||
ynh_app_setting_set $app unprotected_uris "/"
|
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
|
# 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
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
96a7fef92ebff098e8b5bb8130a86d39 spip-3.1.zip
|
61fee69d15b9e3154ad1a3be596cb0fa spip-3.1.zip
|
Loading…
Reference in a new issue