mirror of
https://github.com/YunoHost-Apps/emailpoubelle_ynh.git
synced 2024-09-03 18:26:29 +02:00
Upgrade ynh1=>ynh2 - mysqlpwd setting
This commit is contained in:
parent
5e1b4a6114
commit
ab66979f68
1 changed files with 9 additions and 0 deletions
|
@ -61,6 +61,15 @@ if [[ $?==0 ]]; then
|
|||
|
||||
fi
|
||||
|
||||
#mysqlpwd setting was implemented in ynh2 - check if saved and if not implement
|
||||
db_pass=$(ynh_app_setting_get $app mysqlpwd)
|
||||
if [ -z $db_pass]; then
|
||||
#c'est moche mais ça fera bien l'affaire - en deux lignes sinon pb en fonction du type de shell
|
||||
t=$(cat /var/www/$app/conf.php | grep DBPASS)
|
||||
dbpass=${t:26:24}
|
||||
ynh_appsetting_set $app mysqlpwd $db_pass
|
||||
fi
|
||||
|
||||
# Copy source files
|
||||
cp -a ../src/bin/. $final_path/bin
|
||||
cp -a ../src/lib/. $final_path/lib
|
||||
|
|
Loading…
Reference in a new issue