1
0
Fork 0
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:
frju365 2017-03-03 22:52:56 +01:00 committed by GitHub
parent acdf3d2224
commit e45b65abc0

View file

@ -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@__NAMETOCHANGE__@$app@g" /etc/nginx/conf.d/$domain.d/$app.conf
#=================================================
# SETUP SSOWAT
#=================================================
ynh_app_setting_set "$app" is_public "$is_public"
if [ "$is_public" = "Yes" ];
then
sudo sed -i "s@#--PRIVATE--@@g" /etc/nginx/conf.d/$domain.d/$app.conf
ynh_app_setting_set "$app" unprotected_uris "/"
fi
#=================================================
@ -137,19 +137,6 @@ fi
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
#=================================================
@ -159,18 +146,12 @@ sudo yunohost app ssowatconf
#=================================================
# Reload Nginx and regenerate SSOwat conf
#=================================================
sudo service php5-fpm restart
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
#=================================================
sudo sed -i '/#PRESTASHOP/d' /etc/hosts
sudo sed -i '/#PRESTASHOP/d' /etc/hosts