1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dolibarr_ynh.git synced 2024-09-03 18:35:53 +02:00

[enh] setup dolibarr database

This commit is contained in:
Laurent Peuch 2015-09-29 01:39:54 +02:00
parent 1163a1afec
commit 96f8c0b787

View file

@ -35,6 +35,10 @@ sed -i "s@NAMETOCHANGE@dolibarr@g" ../conf/php-fpm.conf
finalphpconf=/etc/php5/fpm/pool.d/dolibarr.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')
sudo yunohost app initdb dolibarr -p $db_pwd
sudo cp ../conf/php-fpm.conf $finalphpconf
sudo chown root: $finalphpconf
sudo chmod 644 $finalphpconf