Explorar o código

use boolean value

lapineige %!s(int64=2) %!d(string=hai) anos
pai
achega
2760718d62
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/config

+ 1 - 1
scripts/config

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