mirror of
https://github.com/YunoHost-Apps/noalyss_ynh.git
synced 2024-09-03 19:46:20 +02:00
meh
This commit is contained in:
parent
dd446216b2
commit
5363226648
1 changed files with 2 additions and 2 deletions
|
@ -38,8 +38,8 @@ sed -i "s@NAMETOCHANGE@noalyss@g" ../conf/php-fpm.conf
|
||||||
|
|
||||||
db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' | sed -n 's/\(.\{24\}\).*/\1/p')
|
db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' | sed -n 's/\(.\{24\}\).*/\1/p')
|
||||||
|
|
||||||
sudo -u postgres createuser -S -R --createdb noalyss
|
sudo su postgres -c "createuser -S -R --createdb noalyss"
|
||||||
sudo -u postgres 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
|
||||||
finalphpconf=/etc/php5/fpm/pool.d/noalyss.conf
|
finalphpconf=/etc/php5/fpm/pool.d/noalyss.conf
|
||||||
|
|
Loading…
Reference in a new issue