Skip to content

Commit

Permalink
Always use @jessety/pm2-logrotate
Browse files Browse the repository at this point in the history
  • Loading branch information
jessety committed Apr 13, 2022
1 parent aec59a2 commit 5f3d231
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/unix/remove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
echo "=== Remove ==="

echo "Removing pm2-logrotate"
pm2 delete pm2-logrotate --silent
pm2 uninstall pm2-logrotate --silent
pm2 delete @jessety/pm2-logrotate --silent
pm2 uninstall @jessety/pm2-logrotate --silent

echo "Removing pm2 service"
pm2 unstartup
Expand All @@ -14,6 +14,6 @@ pm2 kill

echo "Uninstalling pm2"
npm uninstall pm2 -g --loglevel=error
npm uninstall pm2-logrotate -g --loglevel=error
npm uninstall @jessety/pm2-logrotate -g --loglevel=error

echo "=== Remove Complete ==="
4 changes: 2 additions & 2 deletions src/windows/remove-logrotate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ Write-Host "=== Remove Log Rotation ==="
if (Get-Command "pm2" -ErrorAction SilentlyContinue) {

# Delete the running module
pm2 delete pm2-logrotate --silent
pm2 delete @jessety/pm2-logrotate --silent

# Uninstall the module
pm2 uninstall pm2-logrotate --silent
pm2 uninstall @jessety/pm2-logrotate --silent

} else {

Expand Down
2 changes: 1 addition & 1 deletion src/windows/remove-packages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ npm unlink node-windows --loglevel=error --no-fund --no-audit
Write-Host "Uninstalling packages.."

npm uninstall --global --loglevel=error "pm2"
npm uninstall --global --loglevel=error "pm2-logrotate"
npm uninstall --global --loglevel=error "@jessety/pm2-logrotate"
npm uninstall --global --loglevel=error "node-windows"

Write-Host "=== Remove Packages Complete ==="

0 comments on commit 5f3d231

Please sign in to comment.