1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00

[fix] nginx conf sed were bad

This commit is contained in:
Laurent Peuch 2015-09-27 02:54:32 +02:00
parent b018e32552
commit 8cfbe5de98

View file

@ -24,11 +24,13 @@ sudo chown -R www-data: $final_path
sudo yunohost app setting noalyss version -v "6.9.0.0" sudo yunohost app setting noalyss version -v "6.9.0.0"
if [[ "$path" == "" ]]; then if [[ "$path" == "" ]]; then
sed -i "s@LOCATIONTOCHANGE@/@g" ../conf/nginx.conf sed -i "s@PATHTOCHANGE@/@g" ../conf/nginx.conf
else else
sed -i "s@LOCATIONTOCHANGE@$path@g" ../conf/nginx.conf sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
fi fi
sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/noalyss.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/noalyss.conf
sed -i "s@NAMETOCHANGE@noalyss@g" ../conf/php-fpm.conf sed -i "s@NAMETOCHANGE@noalyss@g" ../conf/php-fpm.conf