Update README.md
This commit is contained in:
parent
04d90e724d
commit
ecc1b9508e
1 changed files with 20 additions and 25 deletions
45
README.md
45
README.md
|
|
@ -7,34 +7,29 @@ Disclaimer & Warning 🚨
|
|||
|
||||
USE AT YOUR OWN RISK! This script performs powerful actions that modify your system. While it's designed to be Proxmox-friendly, there's always a risk of unintended consequences. ALWAYS BACK UP YOUR SYSTEM BEFORE RUNNING THIS SCRIPT! The script does create an automatic backup, but having your own external backup is crucial.
|
||||
How to Use 🛠️
|
||||
|
||||
Download the script:
|
||||
Bash
|
||||
|
||||
```
|
||||
wget https://github.com/kraken537/Uninstal-FreePBX-from-proxmox-script/raw/main/freepbx_uninstall.sh
|
||||
|
||||
```
|
||||
Give it execution permissions:
|
||||
Bash
|
||||
|
||||
```
|
||||
chmod +x freepbx_uninstall.sh
|
||||
|
||||
```
|
||||
Run the script as root:
|
||||
Bash
|
||||
|
||||
sudo ./freepbx_uninstall.sh
|
||||
|
||||
The script will guide you through the process, ask for confirmations, and provide warnings, especially if it detects Proxmox. Pay close attention to its output! 👀
|
||||
```
|
||||
sudo ./freepbx_uninstall.sh
|
||||
```
|
||||
The script will guide you through the process, ask for confirmations, and provide warnings, especially if it detects Proxmox. Pay close attention to its output! 👀
|
||||
|
||||
What the Script Does (and tries not to do to Proxmox) ✨
|
||||
|
||||
Checks for Root: Ensures you're running it as root.
|
||||
Initializes Logging: Creates a detailed log file at /var/log/freepbx-uninstall.log for troubleshooting.
|
||||
Proxmox Detection & Warning: It will explicitly warn you if Proxmox is detected and ask for confirmation to proceed, highlighting shared packages.
|
||||
Automatic Backup: Creates a comprehensive backup of important FreePBX and system configuration files in /var/backups/freepbx-uninstall-DATE-TIME.
|
||||
Stops Services: Gracefully stops FreePBX, Asterisk, and other related services like Apache2, MariaDB, Fail2ban, etc.
|
||||
Smart Package Removal:
|
||||
Removes core FreePBX and Asterisk packages.
|
||||
It's extra careful with packages potentially used by Proxmox (like Apache2, MariaDB, Fail2ban, Node.js, Postfix) and will ask for your confirmation before touching them. The script will try to keep them if they have dependencies.
|
||||
Checks for Root: Ensures you're running it as root.
|
||||
Initializes Logging: Creates a detailed log file at /var/log/freepbx-uninstall.log for troubleshooting.
|
||||
Proxmox Detection & Warning: It will explicitly warn you if Proxmox is detected and ask for confirmation to proceed, highlighting shared packages.
|
||||
Automatic Backup: Creates a comprehensive backup of important FreePBX and system configuration files in /var/backups/freepbx-uninstall-DATE-TIME.
|
||||
Stops Services: Gracefully stops FreePBX, Asterisk, and other related services like Apache2, MariaDB, Fail2ban, etc.
|
||||
Smart Package Removal:
|
||||
Removes core FreePBX and Asterisk packages.
|
||||
It's extra careful with packages potentially used by Proxmox (like Apache2, MariaDB, Fail2ban, Node.js, Postfix) and will ask for your confirmation before touching them. The script will try to keep them if they have dependencies.
|
||||
User & Group Cleanup: Removes the asterisk user and group.
|
||||
Directory & File Purge: Deletes FreePBX-specific directories and files (/var/www/html, /etc/asterisk, /var/lib/asterisk, etc.).
|
||||
Configuration Cleanup:
|
||||
|
|
@ -51,9 +46,9 @@ What the Script Does (and tries not to do to Proxmox) ✨
|
|||
|
||||
After Running 🔄
|
||||
|
||||
REBOOT YOUR SYSTEM! sudo reboot
|
||||
Check your Proxmox web interface (https://your-ip:8006) to ensure everything is working as expected.
|
||||
If you encounter issues with Proxmox, try restarting its services: systemctl restart pveproxy pvedaemon.
|
||||
Your log file (/var/log/freepbx-uninstall.log) and backup directory (/var/backups/freepbx-uninstall-DATE-TIME) are your best friends if something goes wrong.
|
||||
REBOOT YOUR SYSTEM! sudo reboot
|
||||
Check your Proxmox web interface (https://your-ip:8006) to ensure everything is working as expected.
|
||||
If you encounter issues with Proxmox, try restarting its services: systemctl restart pveproxy pvedaemon.
|
||||
Your log file (/var/log/freepbx-uninstall.log) and backup directory (/var/backups/freepbx-uninstall-DATE-TIME) are your best friends if something goes wrong.
|
||||
|
||||
Hope this helps you clean up your server! 👍
|
||||
|
|
|
|||
Loading…
Reference in a new issue