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:
parent
1163a1afec
commit
96f8c0b787
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue