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

[fix] move noalyss config file after setting the password

This commit is contained in:
Laurent Peuch 2015-09-28 00:31:48 +02:00
parent 5363226648
commit cb860263ac

View file

@ -18,7 +18,6 @@ final_path=/var/www/noalyss
sudo mkdir -p $final_path
sudo cp -a ../sources/html/ $final_path
sudo cp -a ../sources/include/ $final_path
sudo cp ../conf/noalyss.conf $final_path/include/config.inc.php
sudo chown -R www-data: $final_path
@ -42,6 +41,8 @@ sudo su postgres -c "createuser -S -R --createdb noalyss"
sudo su postgres -c "psql -c \"ALTER USER noalyss with PASSWORD '$db_pwd';\""
sed -i "s@DATABASE_PASSWORD@$db_pwd@g" ../conf/noalyss.conf
sudo cp ../conf/noalyss.conf $final_path/include/config.inc.php
finalphpconf=/etc/php5/fpm/pool.d/noalyss.conf
sudo cp ../conf/php-fpm.conf $finalphpconf