#10 Added console output for post-update script
This commit is contained in:
@@ -32,13 +32,14 @@ export const checkForUpdates = async () => {
|
||||
// Pull the latest changes from the remote repository
|
||||
await git.pull();
|
||||
|
||||
console.log('Update completed successfully. Restarting the application...');
|
||||
|
||||
// Run the post-update script
|
||||
console.log('Running post-update script...');
|
||||
await launchProcess("bash", ['./post-update.sh']);
|
||||
|
||||
// Restart the application to apply the updates
|
||||
console.log('Update completed successfully. Restarting the application...');
|
||||
restartApplication();
|
||||
|
||||
return true
|
||||
} else {
|
||||
console.log('The application is up to date.');
|
||||
|
||||
Reference in New Issue
Block a user