Skip to content

Commit

Permalink
Laravel 8/9 support. Bug-Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrocinaglia committed Sep 7, 2022
1 parent ff05310 commit ecb8428
Show file tree
Hide file tree
Showing 13 changed files with 296 additions and 545 deletions.
14 changes: 2 additions & 12 deletions Config/laraupdater.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
* @author: Pietro Cinaglia
* .website: http://linkedin.com/in/pietrocinaglia
* https://github.com/pietrocinaglia
*/

return [
Expand All @@ -27,15 +27,5 @@
* This parameter accepts: ARRAY(user_id) ,or FALSE => for example: [1] OR [1,3,0] OR false
* Generally, ADMIN have user_id=1; set FALSE to disable this check (not recommended)
*/
'allow_users_id' => [1],

/*
* Laravel migrate settings
*/
'migrate' => true,
/*
* Set the update check time period, to prevent update server overload.
* Set the number in minutes
*/
'version_check_time' => 15,
'allow_users_id' => [1]
];
43 changes: 0 additions & 43 deletions lang/ar/laraupdater.php

This file was deleted.

43 changes: 0 additions & 43 deletions lang/de/laraupdater.php

This file was deleted.

64 changes: 28 additions & 36 deletions lang/en/laraupdater.php
Original file line number Diff line number Diff line change
@@ -1,43 +1,35 @@
<?php

return [

/*
* @author: Pietro Cinaglia
* https://github.com/pietrocinaglia
*/
/*
|--------------------------------------------------------------------------
| Lara Updater Language Lines
|--------------------------------------------------------------------------
|
|
*/

'LaraUpdater' => 'LaraUpdater',
'Return_to_App_HOME' => 'Return to App HOME ',
'ACTION_NOT_ALLOWED.' => 'ACTION NOT ALLOWED',
'Your_System_IS_ALREADY_UPDATED_to_last version' => 'Your System IS ALREADY UPDATED to last version',
'UPDATE_FOUND' => 'UPDATE FOUND',
'current_version' => "current version",
'DESCRIPTION' => 'DESCRIPTION',
'Update_downloading_..' => 'Update, downloading ...........',
'Error_during_download.' => 'Error during download.',
'OK' => 'OK',
'SYSTEM_Mantence_Mode' => 'SYSTEM Mantence Mode',
'ON' => 'ON',
'OFF' => 'OFF',
'SYSTEM_IS_NOW_UPDATED_TO_VERSION' => 'SYSTEM IS NOW UPDATED TO VERSION',
'ERROR_DURING_UPDATE_(!!check_the_update_archive!!)' => 'ERROR DURING UPDATE (!!check the update archive!!) --TRY to restore OLD status ........... ',
'CHANGELOG' => 'CHANGELOG',
'Directory' => 'Directory',
'File' => 'File',
'Commands_successfully_executed.' => 'Commands successfully executed.',
'Error_during_commands_execution.' => ' Error during commands execution.',
'Could_not_save_new_update' => 'Could not save new update (check tmp/ write permission). Update aborted.',
'FAILED' => 'FAILED',
'Backup_folder_is_located_in:' => 'Backup folder is located in:',
'Remember_to_restore_System_UP-Status_through_shell_command:' => 'Remember to restore System UP-Status through shell command:',
'RESTORED' => 'RESTORED',
'Update_Now' => 'Update Now',
'Update_Available' => 'Update Available',
'Updated' => 'Updated',
'Updating' => 'Updating',
'error_try_again' => 'Error.Try Again'
];
return [
'SYSTEM_VERSION' => 'System\'s version: ',
'PERMISSION_DENIED' => 'The user is not authorized to perform updates.',
'ALREADY_UPDATED' => 'The system IS ALREADY UPDATED to last version.',
'BACKUP' => 'Backup folder created.',
'BACKUP_FOUND' => 'Backup found: ',
'DOWNLOADING' => 'Downloading the update...',
'DOWNLOADING_SUCCESS' => 'Update downloaded successfully.',
'DOWNLOADING_ERROR' => 'An error occurred during the download.',
'MAINTENANCE_MODE_ON' => 'Maintenance mode: ON',
'MAINTENANCE_MODE_OFF' => 'Maintenance mode: OFF',
'INSTALLATION_SUCCESS' => 'Update installed successfully.',
'INSTALLATION_ERROR' => 'An error occurred during the installation.',
'RECOVERY' => 'LaraUpdater is attempting to recovery your system from backup.',
'RECOVERY_SUCCESS' => 'Recovery completed successfully.',
'RECOVERY_ERROR' => 'Recovery failed, try it manually. Remember: \'php artisan up\' to disable the maintenance mode.',
'EXCEPTION' => 'An exception occurred: ',
'CHANGELOG' => 'Changelog:',
'DIRECTORY_CREATED' => 'Directory created: ',
'FILE_EXIST' => 'File exist: ',
'FILE_COPIED' => 'File copied: ',
'EXECUTE_UPDATE_SCRIPT' => 'Execute the script included into the update.',
'TEMP_CLEANED' => 'Temporary files deleted.',
];
43 changes: 0 additions & 43 deletions lang/fa/laraupdater.php

This file was deleted.

43 changes: 0 additions & 43 deletions lang/hu/laraupdater.php

This file was deleted.

43 changes: 0 additions & 43 deletions lang/id/laraupdater.php

This file was deleted.

35 changes: 35 additions & 0 deletions lang/it/laraupdater.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
/*
* @author: Pietro Cinaglia
* https://github.com/pietrocinaglia
*/
/*
|--------------------------------------------------------------------------
| Lara Updater Language Lines
|--------------------------------------------------------------------------
*/

return [
'SYSTEM_VERSION' => 'Versione del sistema: ',
'PERMISSION_DENIED' => 'Utente non autorizzato ad eseguire aggiornamenti.',
'ALREADY_UPDATED' => 'Il sistema risulta aggiornato all\'ultima versione.',
'BACKUP' => 'Cartella di Backup creata.',
'BACKUP_FOUND' => 'Backup trovato: ',
'DOWNLOADING' => 'Download dell\'aggiornamento...',
'DOWNLOADING_SUCCESS' => 'Aggiornamento scaricato con successo.',
'DOWNLOADING_ERROR' => 'Errore durante il download.',
'MAINTENANCE_MODE_ON' => 'Maintenance mode: ON',
'MAINTENANCE_MODE_OFF' => 'Maintenance mode: OFF',
'INSTALLATION_SUCCESS' => 'Aggiornamento installato con successo.',
'INSTALLATION_ERROR' => 'Errore durante l\'installazione.',
'RECOVERY' => 'LaraUpdater sta provando a recuperare il sistema dal backup.',
'RECOVERY_SUCCESS' => 'Recupero completato con successo.',
'RECOVERY_ERROR' => 'Recupero fallito, provare manualmente. Nota: \'php artisan up\' disabilita la maintenance mode.',
'EXCEPTION' => 'Si è verificata una exception: ',
'CHANGELOG' => 'Changelog:',
'DIRECTORY_CREATED' => 'Directory creata: ',
'FILE_EXIST' => 'File esistente: ',
'FILE_COPIED' => 'File copiato: ',
'EXECUTE_UPDATE_SCRIPT' => 'Esecuzione dello script di aggiornamento.',
'TEMP_CLEANED' => 'File temporanei eliminati.',
];
42 changes: 0 additions & 42 deletions lang/tr/laraupdater.php

This file was deleted.

Loading

0 comments on commit ecb8428

Please sign in to comment.