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:
parent
7fb4c4534d
commit
04ed847e18
2 changed files with 6 additions and 1 deletions
|
@ -17,6 +17,9 @@ fi
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
sudo mkdir -p $final_path
|
sudo mkdir -p $final_path
|
||||||
sudo cp -a ../sources/* $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
|
sudo chown -R www-data: $final_path
|
||||||
|
|
||||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||||
|
|
|
@ -12,7 +12,9 @@ path=${path%/}
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
sudo mkdir -p $final_path
|
sudo mkdir -p $final_path
|
||||||
sudo cp -a ../sources/* $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
|
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||||
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
||||||
sed -i "s@WWWPATH@$final_path@g" ../conf/nginx.conf
|
sed -i "s@WWWPATH@$final_path@g" ../conf/nginx.conf
|
||||||
|
|
Loading…
Reference in a new issue