diff --git a/scripts/install b/scripts/install index c874e3d..61ca16c 100755 --- a/scripts/install +++ b/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 #=================================================