Selaa lähdekoodia

use boolean value

lapineige 1 vuosi sitten
vanhempi
commit
2760718d62
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      scripts/config

+ 1 - 1
scripts/config

@@ -124,7 +124,7 @@ apply_config() {
     #=================================================
     #=================================================
 
 
     # Change the password if needed
     # Change the password if needed
-    if [ "$encrypt" = "1" ]
+    if [ "$encrypt" ]
     then
     then
         ynh_print_OFF
         ynh_print_OFF
         test -n "$encrypt_password" || ynh_die --message="The password for encryption can't be empty if you choose to enable encryption."
         test -n "$encrypt_password" || ynh_die --message="The password for encryption can't be empty if you choose to enable encryption."