lapineige 1 vuosi sitten
vanhempi
commit
8020d9fd0a
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      scripts/install

+ 2 - 2
scripts/install

@@ -36,7 +36,7 @@ ynh_script_progression --message="Validating installation parameters..."
 final_path=/opt/yunohost/$app
 test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
 
-if [ $encrypt -eq 1 ]; then
+if [ $encrypt ]; then
 	test -n "$encryption_pwd" || ynh_die --message="encryption_pwd can't be empty if you choose to enable encryption."
 fi
 
@@ -104,7 +104,7 @@ fi
 
 ynh_add_config --template="Backup_list.conf.default" --destination="$config_file"
 
-if [ $apps_backup -eq 1 ]
+if [ $apps_backup ]
 then
 	# Add all current applications to the backup
 	while read backup_app