Skip to content

Commit

Permalink
Improved uninstallation process (removes all packages and the reposit…
Browse files Browse the repository at this point in the history
…ory) + small CSS improvement for Plesk 12.5
  • Loading branch information
Kubik-Rubik committed Dec 6, 2016
1 parent 2f82fdd commit 3e26c98
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
8 changes: 6 additions & 2 deletions htdocs/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@
display: inline-block;
}

#newrelic div[id^="php_versions_"] {
margin-left: 315px;
#newrelic input[id^="php_versions_"] {
margin-left: 295px;
}

#newrelic label[for^="php_versions_"] {
margin-left: 5px;
}

#newrelic span.logo-product-servers {
Expand Down
33 changes: 27 additions & 6 deletions sbin/preuninstallcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,20 @@ if [ "$REMOVESERVERS" = "1" ];
then
if [ -f /etc/redhat-release ];
then
nohup rpm -e newrelic-sysmond > /dev/null 2>&1 &
yum -y -q remove newrelic-sysmond
yum -y -q remove newrelic-repo

if [ -f /etc/yum.repos.d/newrelic.repo ]
then
rm /etc/yum.repos.d/newrelic.repo
fi
else
nohup dpkg -r newrelic-sysmond > /dev/null 2>&1 &
apt-get -qq -y autoremove
apt-get -qq -y --purge autoremove newrelic-sysmond

if [ -f /etc/apt/sources.list.d/newrelic.list ]
then
rm /etc/apt/sources.list.d/newrelic.list
fi
fi
fi

Expand All @@ -22,9 +32,20 @@ if [ "$REMOVEAPM" = "1" ];
then
if [ -f /etc/redhat-release ];
then
nohup rpm -e newrelic-php5 > /dev/null 2>&1 &
yum -y -q remove newrelic-php5
yum -y -q remove newrelic-php5-common
yum -y -q remove newrelic-repo

if [ -f /etc/yum.repos.d/newrelic.repo ]
then
rm /etc/yum.repos.d/newrelic.repo
fi
else
nohup dpkg -r newrelic-php5 > /dev/null 2>&1 &
apt-get -qq -y autoremove
apt-get -qq -y --purge autoremove newrelic-php5

if [ -f /etc/apt/sources.list.d/newrelic.list ]
then
rm /etc/apt/sources.list.d/newrelic.list
fi
fi
fi

0 comments on commit 3e26c98

Please sign in to comment.