Ver Fonte

fix outdated test + debug

lapineige há 1 ano atrás
pai
commit
46eb5ac3c9
1 ficheiros alterados com 2 adições e 12 exclusões
  1. 2 12
      scripts/install

+ 2 - 12
scripts/install

@@ -92,10 +92,8 @@ ynh_script_progression --message="Configuring Archivist..." --weight=2
 
 config_file="$final_path/Backup_list.conf"
 
-if [ $encrypt -eq 1 ]
+if [ $encrypt ]
 then
-	encrypt=true
-
 	passkey="$final_path/passkey"
 	echo "$encryption_pwd" > "$passkey"
 	chmod 400 "$passkey"
@@ -104,14 +102,6 @@ else
 	passkey=na
 fi
 
-
-if [ $core_backup -eq 1 ]
-then
-	core_backup=true
-else
-	core_backup=false
-fi
-
 ynh_add_config --template="Backup_list.conf.default" --destination="$config_file"
 
 if [ $apps_backup -eq 1 ]
@@ -161,7 +151,7 @@ ynh_store_file_checksum --file="/etc/cron.d/$app"
 # chown -R $app: $final_path
 ## Debug
 ynh_exec_warn ls -l $final_path
-ynh_system_user_exists --username=$app
+# ynh_system_user_exists --username=$app
 chmod 777 $final_path
 
 #=================================================