#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
|
// Pull the latest changes from the remote repository
|
||||||
await git.pull();
|
await git.pull();
|
||||||
|
|
||||||
console.log('Update completed successfully. Restarting the application...');
|
|
||||||
|
|
||||||
// Run the post-update script
|
// Run the post-update script
|
||||||
|
console.log('Running post-update script...');
|
||||||
await launchProcess("bash", ['./post-update.sh']);
|
await launchProcess("bash", ['./post-update.sh']);
|
||||||
|
|
||||||
// Restart the application to apply the updates
|
// Restart the application to apply the updates
|
||||||
|
console.log('Update completed successfully. Restarting the application...');
|
||||||
restartApplication();
|
restartApplication();
|
||||||
|
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
console.log('The application is up to date.');
|
console.log('The application is up to date.');
|
||||||
|
|||||||
Reference in New Issue
Block a user