mirror of
https://github.com/YunoHost-Apps/phpbb_ynh.git
synced 2024-09-03 19:56:36 +02:00
Password for phpBB MySQL database
This commit is contained in:
parent
d6c87fa0db
commit
9063b79bb1
2 changed files with 13 additions and 3 deletions
|
@ -40,6 +40,15 @@
|
|||
},
|
||||
"choices": ["Yes", "No"],
|
||||
"default": "Yes"
|
||||
},
|
||||
{
|
||||
"name": "dp_pwd",
|
||||
"type": "password",
|
||||
"ask": {
|
||||
"en": "Choose a password for phpBB MySQL database",
|
||||
"fr": "Choisissez un mot de passe pour la base MySQL de phpBB"
|
||||
},
|
||||
"example": "my_strong_password"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -14,7 +14,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=$4
|
||||
|
||||
# Initialize database and store mysql password for upgrade
|
||||
#sudo yunohost app initdb $db_user -p $db_pwd -s $(readlink -e ../sources/SQL/mysql.initial.sql)
|
||||
|
@ -25,7 +26,7 @@ sudo yunohost app setting $app mysqlpwd -v $db_pwd
|
|||
final_path=/var/www/$app
|
||||
sudo rm -rf $final_path
|
||||
sudo mkdir -p $final_path
|
||||
sudo cp -a ../sources/* $final_path
|
||||
sudo cp -a ../sources/phpBB/* $final_path
|
||||
|
||||
|
||||
# Set permissions to rainloop directory
|
||||
|
|
Loading…
Reference in a new issue