mirror of
https://github.com/YunoHost-Apps/jirafeau_ynh.git
synced 2024-09-03 19:35:53 +02:00
Merge pull request #62 from YunoHost-Apps/fix_password
replace_special_string for password
This commit is contained in:
commit
931a1d503e
2 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ then
|
||||||
ynh_replace_string --match_string="__YNH_UPLOAD_PASSWORD__" --replace_string="" --target_file="$jirafeauconfigfile"
|
ynh_replace_string --match_string="__YNH_UPLOAD_PASSWORD__" --replace_string="" --target_file="$jirafeauconfigfile"
|
||||||
ynh_app_setting_set --app=$app --key=upload_password --value=""
|
ynh_app_setting_set --app=$app --key=upload_password --value=""
|
||||||
else
|
else
|
||||||
ynh_replace_string --match_string="__YNH_UPLOAD_PASSWORD__" --replace_string="'$upload_password'" --target_file="$jirafeauconfigfile"
|
ynh_replace_special_string --match_string="__YNH_UPLOAD_PASSWORD__" --replace_string="'$upload_password'" --target_file="$jirafeauconfigfile"
|
||||||
ynh_app_setting_set --app=$app --key=upload_password --value="$upload_password"
|
ynh_app_setting_set --app=$app --key=upload_password --value="$upload_password"
|
||||||
fi
|
fi
|
||||||
ynh_print_ON
|
ynh_print_ON
|
||||||
|
|
|
@ -129,7 +129,7 @@ then
|
||||||
ynh_replace_string --match_string="__YNH_UPLOAD_PASSWORD__" --replace_string="" --target_file="$jirafeauconfigfile"
|
ynh_replace_string --match_string="__YNH_UPLOAD_PASSWORD__" --replace_string="" --target_file="$jirafeauconfigfile"
|
||||||
ynh_app_setting_set --app=$app --key=upload_password --value=""
|
ynh_app_setting_set --app=$app --key=upload_password --value=""
|
||||||
else
|
else
|
||||||
ynh_replace_string --match_string="__YNH_UPLOAD_PASSWORD__" --replace_string="'$upload_password'" --target_file="$jirafeauconfigfile"
|
ynh_replace_special_string --match_string="__YNH_UPLOAD_PASSWORD__" --replace_string="'$upload_password'" --target_file="$jirafeauconfigfile"
|
||||||
ynh_app_setting_set --app=$app --key=upload_password --value="$upload_password"
|
ynh_app_setting_set --app=$app --key=upload_password --value="$upload_password"
|
||||||
fi
|
fi
|
||||||
ynh_print_ON
|
ynh_print_ON
|
||||||
|
|
Loading…
Reference in a new issue