From 7469e00fff870ee6ebbb2cb345b9d102c7479c65 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 6 Sep 2021 01:02:43 +0200 Subject: [PATCH] -z -> -n to validate that password ain't empty --- config_app_ynh/scripts/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_app_ynh/scripts/config b/config_app_ynh/scripts/config index cb99b95..c51b077 100644 --- a/config_app_ynh/scripts/config +++ b/config_app_ynh/scripts/config @@ -62,7 +62,7 @@ validate__arg8() { # SPECIFIC SETTERS FOR TOML SHORT KEYS #================================================= set__arg8() { - if [ -z "${arg8}" ] + if [ -n "${arg8}" ] then python -c "import crypt; print(crypt.crypt(\"${arg8}\", \"\$6\$saltsalt\$\"))" > $final_path/password ynh_print_info "The hash of your password has been registered in $final_path/password"