mirror of
https://github.com/YunoHost-Apps/spip_ynh.git
synced 2024-09-03 20:25:59 +02:00
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 ;)
This commit is contained in:
parent
268d3eb611
commit
4939a79386
1 changed files with 6 additions and 1 deletions
|
@ -72,6 +72,11 @@ POOL_FPM
|
||||||
sudo cp ../conf/connect.php $final_path/config/connect.php
|
sudo cp ../conf/connect.php $final_path/config/connect.php
|
||||||
sudo cp ../conf/mes_options.php $final_path/config/mes_options.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
|
# Change SPIP configuration file variables
|
||||||
sudo sed -i "s@__DB_USER__@$db_user@g" $final_path/config/connect.php
|
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
|
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
|
sudo systemctl reload nginx
|
||||||
|
|
||||||
# clean hosts
|
# clean hosts
|
||||||
sudo sed -i '/#SPIP/d' /etc/hosts
|
sudo sed -i '/#SPIP/d' /etc/hosts
|
||||||
|
|
Loading…
Reference in a new issue