Changes

Jump to navigation Jump to search
367 bytes added ,  21:43, 22 April 2022
Line 177: Line 177:  
  echo "    - /usr/share/asterisk/bin/*"
 
  echo "    - /usr/share/asterisk/bin/*"
 
  echo ""
 
  echo ""
  echo -n "Are you sure you want to remove FreePBX permanently ? (y/n) [n] "
+
  echo -n "Are you sure you want to remove FreePBX permanentlye? (y/n) [n] "
 
  read confirm
 
  read confirm
 
  if [ "$confirm" = "y" -o "$confirm" = "Y" ]; then
 
  if [ "$confirm" = "y" -o "$confirm" = "Y" ]; then
 +
        echo "removing rpms"
 +
        yum remove -y smeserver-freepbx freepbx-src asterisk*  -y
 
         echo "Droping MySQL databases..."
 
         echo "Droping MySQL databases..."
 
         DBNAME=$(/sbin/e-smith/db configuration getprop freepbx DbName)
 
         DBNAME=$(/sbin/e-smith/db configuration getprop freepbx DbName)
Line 202: Line 204:  
         rm -rf /var/lib/asterisk/bin/*
 
         rm -rf /var/lib/asterisk/bin/*
 
         echo "Removing /usr/share/asterisk/bin/* ..."
 
         echo "Removing /usr/share/asterisk/bin/* ..."
         rm -rf /usr/share/asterisk/bin/*  
+
         rm -rf /usr/share/asterisk/bin/*
         echo "removing the crontab entry for asterisk"
+
         echo "Removing associated asterisk confs ..."
 +
        rm -rf /etc/asterisk
 +
        rm -rf /home/e-smith/files/freepbx
 +
        rm -rf /var/lib/asterisk
 +
        rm -rf /var/lib/php/fpbx-session
 +
        rm -rf /var/log/httpd-fpbx
 +
        rm -rf /var/service/httpd-fpbx 
 +
        echo "Removing the crontab entry for asterisk"
 
         crontab -u asterisk -r
 
         crontab -u asterisk -r
 
         echo "Done!"
 
         echo "Done!"
3,054

edits

Navigation menu