1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpbb_ynh.git synced 2024-09-03 19:56:36 +02:00

Automatic configuration

This commit is contained in:
polytan02 2015-03-07 23:36:07 +00:00
parent 78b7a2a6aa
commit d5356745c8
2 changed files with 4 additions and 3 deletions

View file

@ -72,8 +72,8 @@
{
"name": "lang",
"ask": {
"en": "Configure phpBB to use English ?",
"fr": "Configurer phpBB en Français ?"
"en": "Configure phpBB's language",
"fr": "Configurer la langue de phpBB"
},
"choices": ["en", "fr"],
"default": "en"

View file

@ -18,7 +18,8 @@ if [[ ! $? -eq 0 ]]; then
fi
db_user=$app
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')
db_pwd=admin_pwd
# Initialize database and store mysql password for upgrade
sudo yunohost app initdb $db_user -p $db_pwd