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:
parent
b018e32552
commit
8cfbe5de98
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue