mirror of
https://github.com/YunoHost-Apps/prestashop_ynh.git
synced 2024-09-03 20:06:39 +02:00
Merge pull request #1 from YunoHost-Apps/patch-1
Thing to make easier to understand.
This commit is contained in:
commit
cdc860da52
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@__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,16 +146,10 @@ 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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue