sentora / sentora-installers

Provides a central place to store, version and distribute the Sentora installer and upgrade scripts from.
GNU General Public License v3.0
154 stars 148 forks source link

Ubuntu 14.04 LTS Issue with apparmor removal #66

Closed Caffe1neAdd1ct closed 9 years ago

Caffe1neAdd1ct commented 9 years ago

Hi Guys,

Noticed an issue, when running the sentora installer it runs:

apt-get remove -y --purge apparmor* &> /dev/null

Actually results in:

The following packages will be REMOVED
  dbus* debhelper* dh-apparmor* libapparmor1* libpam-systemd* pkg-php-tools*

This removes alot more than just apparmor and causes huge dep issues with apt-get later, i would suggest changing:

        echo -e "\n-- Disabling and removing AppArmor, please wait..."
        /etc/init.d/apparmor stop &> /dev/null
        update-rc.d -f apparmor remove &> /dev/null
        apt-get remove -y --purge apparmor* &> /dev/null
        disable_file /etc/init.d/apparmor &> /dev/null
        echo -e "AppArmor has been removed."

to

        echo -e "\n-- Disabling and removing AppArmor, please wait..."
        /etc/init.d/apparmor kill &> /dev/null
        update-rc.d -f apparmor remove
        apt-get remove -y --purge apparmor apparmor-utils
        echo -e "AppArmor has been removed."

Wildcard removal of packages should be avoided.

5050 commented 9 years ago

Adopted ! (commit 305cc3d4b2)

Caffe1neAdd1ct commented 9 years ago

@5050 Cheers :+1:

Hoping for some free time soon, i'll be back on the forums soon :)

Caffe1neAdd1ct commented 9 years ago

Quick note on how to fix this for existing Ubuntu 14.04 installations: