diff --git a/install.sh b/install.sh index de3cf44..e351ecd 100644 --- a/install.sh +++ b/install.sh @@ -174,9 +174,8 @@ echo "📦 Installing npm dependencies..." npm install -silent # Copy configuration file -echo "📑 Checking if config.js exists..." if [ -e config.js ]; then - echo "⚠️ config.js already exists. Skipping copy..." + echo "✅ config.js already exists. Skipping copy..." else echo "📑 Copying default.config.js to config.js..." cp default.config.js config.js @@ -225,7 +224,8 @@ else echo "❌ Failed to find the command generated by pm2 startup! PM2 was not added to autostart." fi -echo "⚙️ Running PM2 save..." +echo "⚙️ Running a script with PM2 and saving the current state of all processes managed by it..." +pm2 start --silent pm2 save --silent