1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minchat_ynh.git synced 2024-09-03 19:36:29 +02:00

Do not overwrite setup.ini

This commit is contained in:
Chtixof 2015-05-20 23:07:46 +02:00
parent 7fb4c4534d
commit 04ed847e18
2 changed files with 6 additions and 1 deletions

View file

@ -17,6 +17,9 @@ fi
final_path=/var/www/$app
sudo mkdir -p $final_path
sudo cp -a ../sources/* $final_path
if [[ ! -f ${final_path}/conf/setup.ini ]] ; then
sudo cp ${final_path}/conf/sample/setup.ini ..
fi
sudo chown -R www-data: $final_path
# Modify Nginx configuration file and copy it to Nginx conf directory

View file

@ -12,7 +12,9 @@ path=${path%/}
final_path=/var/www/$app
sudo mkdir -p $final_path
sudo cp -a ../sources/* $final_path
if [[ ! -f ${final_path}/conf/setup.ini ]] ; then
sudo cp ${final_path}/conf/sample/setup.ini ..
fi
# Modify Nginx configuration file and copy it to Nginx conf directory
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
sed -i "s@WWWPATH@$final_path@g" ../conf/nginx.conf