mirror of
https://github.com/YunoHost-Apps/prestashop_ynh.git
synced 2024-09-03 20:06:39 +02:00
Update install
This commit is contained in:
parent
acdf3d2224
commit
e45b65abc0
1 changed files with 4 additions and 23 deletions
|
@ -121,14 +121,14 @@ sudo sed -i "s@__PATHTOCHANGE__@$path@g" /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
sudo sed -i "s@__FINALPATH__@$final_path@g" /etc/nginx/conf.d/$domain.d/$app.conf
|
sudo sed -i "s@__FINALPATH__@$final_path@g" /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
sudo sed -i "s@__NAMETOCHANGE__@$app@g" /etc/nginx/conf.d/$domain.d/$app.conf
|
sudo sed -i "s@__NAMETOCHANGE__@$app@g" /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
ynh_app_setting_set "$app" is_public "$is_public"
|
||||||
if [ "$is_public" = "Yes" ];
|
if [ "$is_public" = "Yes" ];
|
||||||
then
|
then
|
||||||
sudo sed -i "s@#--PRIVATE--@@g" /etc/nginx/conf.d/$domain.d/$app.conf
|
ynh_app_setting_set "$app" unprotected_uris "/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -137,19 +137,6 @@ fi
|
||||||
|
|
||||||
POOL_FPM
|
POOL_FPM
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# Changer les informations de la tables
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
# Charger la structure des tables dans la base.
|
|
||||||
# mysql --debug-check -u $db_user -p$db_pwd $db_user < ../conf/sql/prestashop.sql
|
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# Donne un accès public pour curl
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
ynh_app_setting_set $app unprotected_uris "/"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# Régénère la configuration de SSOwat
|
# Régénère la configuration de SSOwat
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -159,18 +146,12 @@ 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
|
||||||
|
|
||||||
if [ "$is_public" = "No" ];
|
|
||||||
then
|
|
||||||
# Retire l'accès public
|
|
||||||
ynh_app_setting_delete $app unprotected_uris
|
|
||||||
sudo yunohost app ssowatconf
|
|
||||||
fi
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# Nettoyer hosts
|
# Nettoyer hosts
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
sudo sed -i '/#PRESTASHOP/d' /etc/hosts
|
sudo sed -i '/#PRESTASHOP/d' /etc/hosts
|
||||||
|
|
Loading…
Add table
Reference in a new issue