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

Merge pull request #2 from genma/master

Allow plugins installation directly from SPIP
This commit is contained in:
__cyp 2017-11-21 15:59:22 +01:00 committed by GitHub
commit 2016c3a3a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,6 +72,11 @@ POOL_FPM
sudo cp ../conf/connect.php $final_path/config/connect.php
sudo cp ../conf/mes_options.php $final_path/config/mes_options.php
#Allow plugins installation directly from SPIP
sudo mkdir $final_path/plugins/
sudo mkdir $final_path/plugins/auto/
sudo chown www-data:www-data -R $final_path/plugins/
# Change SPIP configuration file variables
sudo sed -i "s@__DB_USER__@$db_user@g" $final_path/config/connect.php
sudo sed -i "s@__DB_PWD__@$db_pwd@g" $final_path/config/connect.php
@ -131,4 +136,4 @@ sudo systemctl reload php5-fpm
sudo systemctl reload nginx
# clean hosts
sudo sed -i '/#SPIP/d' /etc/hosts
sudo sed -i '/#SPIP/d' /etc/hosts