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 - Corrected

This commit is contained in:
Chtixof 2015-05-20 23:22:42 +02:00
parent 04ed847e18
commit 68c5c1ed8c
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ 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 ..
sudo cp ${final_path}/conf/sample/setup.ini ${final_path}/conf/
fi
sudo chown -R www-data: $final_path

View file

@ -13,7 +13,7 @@ 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 ..
sudo cp ${final_path}/conf/sample/setup.ini ${final_path}/conf/
fi
# Modify Nginx configuration file and copy it to Nginx conf directory
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf