mirror of
https://github.com/PegaProx/project-pegaprox.git
synced 2026-04-25 10:05:56 +03:00
[GH-ISSUE #74] uninstall pegaprox #52
Labels
No labels
Approved
Q2-3 2026 Development
bug
documentation
enhancement
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/project-pegaprox-PegaProx#52
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @devrimerduman on GitHub (Feb 23, 2026).
Original GitHub issue: https://github.com/PegaProx/project-pegaprox/issues/74
Hello,
is this okay to uninstall with this code block ?
#!/usr/bin/env bash
set -e
echo "Stopping service..."
systemctl stop pegaprox.service 2>/dev/null || true
systemctl disable pegaprox.service 2>/dev/null || true
echo "Removing systemd unit..."
rm -f /etc/systemd/system/pegaprox.service
/lib/systemd/system/pegaprox.service
/usr/lib/systemd/system/pegaprox.service
systemctl daemon-reload
systemctl reset-failed
echo "Killing running processes..."
pkill -f "/opt/PegaProx" 2>/dev/null || true
echo "Removing files..."
rm -rf /opt/PegaProx
rm -f /etc/sudoers.d/pegaprox
rm -f /usr/local/bin/pegaprox
rm -rf /var/lib/pegaprox /var/log/pegaprox /etc/pegaprox
echo "Cleaning cron..."
crontab -l 2>/dev/null | grep -vi pegaprox | crontab - 2>/dev/null || true
echo "Removing deploy script..."
rm -f /root/deploy.sh
echo "Final check..."
if ps aux | grep -i pegaprox | grep -v grep >/dev/null; then
echo "Warning: Some processes still running"
else
echo "Uninstall completed successfully"
fi
@mkellermann97 commented on GitHub (Feb 23, 2026):
Hello @devrimerduman ,
yes that would be okay. Thank you for trying out PegaProx!
Regards,
Marcus