Changes

From SME Server
Jump to navigationJump to search
489 bytes added ,  04:08, 17 April 2022
Line 181: Line 181:  
  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 206: Line 208:  
         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 associated asterisk confs ..."
 +
        rm -f /etc/freepbx.conf
 +
        rm -f /etc/amportal.conf
 +
        rm -f /etc/amportal.conf
 +
        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"
 
         echo "removing the crontab entry for asterisk"
 
         crontab -u asterisk -r
 
         crontab -u asterisk -r
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,250

edits

Navigation menu