1
0
Fork 0
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:
Krakinou 2018-11-25 16:19:51 +01:00 committed by GitHub
parent 5e1b4a6114
commit ab66979f68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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