#10 Added console output for post-update script

This commit is contained in:
Logan Cusano
2024-03-24 19:02:49 -04:00
parent 3e50f0b2f3
commit ed04e24fc6

View File

@@ -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.');