1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00

retrieve mysql password after ynh_die to comply linter

This commit is contained in:
Clément 2017-03-13 22:13:09 +01:00
parent 1a0f600477
commit 4b7c370628
2 changed files with 2 additions and 1 deletions

0
check_process Normal file
View file

View file

@ -13,11 +13,12 @@ db_name=$app
# retrieve useful param
domain=$(ynh_app_setting_get $app domain)
path=$(ynh_app_setting_get $app path)
db_pass=$(ynh_app_setting_get $app mysqlpwd)
# Check domain/path availability
sudo yunohost app checkurl $domain$path -a $app || ynh_die "The path ${domain}${path} is not available for app installation."
db_pass=$(ynh_app_setting_get $app mysqlpwd)
# Restore sources & data
final_path=/var/www/$app
ynh_backup "www" "$final_path"