1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/prestashop_ynh.git synced 2024-09-03 20:06:39 +02:00

Correction bug dans upgrade

This commit is contained in:
magikcypress 2017-03-15 17:13:32 +01:00
parent bfb6cbcdb3
commit c8610e4eff

View file

@ -31,16 +31,20 @@ final_path=/var/www/$app
db_name=$app db_name=$app
# Modify Nginx configuration file and copy it to Nginx conf directory # Modify Nginx configuration file and copy it to Nginx conf directory
sed -i "s@__PATHTOCHANGE__@$app@g" ../conf/nginx.conf* sudo sed -i "s@__PATHTOCHANGE__@$path@g" /etc/nginx/conf.d/$domain.d/$app.conf
sed -i "s@__FINALPATH__@$final_path/@g" ../conf/nginx.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
# If app is public, add url to SSOWat conf as skipped_uris if [ "$is_public" = "Yes" ];
if [ $is_public = "Yes" ];
then then
ynh_app_setting_set "$app" unprotected_uris "/" sudo sed -i "s@#--PRIVATE--@@g" /etc/nginx/conf.d/$domain.d/$app.conf
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf fi
else
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf # Setup SSOwat
ynh_app_setting_set "$app" is_public "$is_public"
if [ "$is_public" = "Yes" ];
then
ynh_app_setting_set "$app" unprotected_uris "/"
fi fi
# Reload Nginx # Reload Nginx