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:
parent
5363226648
commit
cb860263ac
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,6 @@ final_path=/var/www/noalyss
|
||||||
sudo mkdir -p $final_path
|
sudo mkdir -p $final_path
|
||||||
sudo cp -a ../sources/html/ $final_path
|
sudo cp -a ../sources/html/ $final_path
|
||||||
sudo cp -a ../sources/include/ $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
|
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';\""
|
sudo su postgres -c "psql -c \"ALTER USER noalyss with PASSWORD '$db_pwd';\""
|
||||||
|
|
||||||
sed -i "s@DATABASE_PASSWORD@$db_pwd@g" ../conf/noalyss.conf
|
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
|
finalphpconf=/etc/php5/fpm/pool.d/noalyss.conf
|
||||||
|
|
||||||
sudo cp ../conf/php-fpm.conf $finalphpconf
|
sudo cp ../conf/php-fpm.conf $finalphpconf
|
||||||
|
|
Loading…
Reference in a new issue