From 4939a79386f778e5ae42cae160ac30d8b60e2810 Mon Sep 17 00:00:00 2001 From: Genma Date: Mon, 13 Nov 2017 17:24:49 +0100 Subject: [PATCH] Allow plugins installation directly from SPIP To install plugins directly form administration interface, SPIP needs the plugins/auto/ directory. It is not created by default at the installation, users need to create them. The yunohost installation script should do this steps automatically ;) --- scripts/install | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index f3e8a95..ca4a052 100644 --- a/scripts/install +++ b/scripts/install @@ -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 \ No newline at end of file +sudo sed -i '/#SPIP/d' /etc/hosts