Skip to content

Commit

Permalink
Merge pull request #31 from linode/revert-29-feature/remove-file-on-u…
Browse files Browse the repository at this point in the history
…ninstall

Revert "Remove /etc/linode on package removal"
  • Loading branch information
jamesottinger committed Aug 25, 2016
2 parents fa85119 + 2200fe5 commit 536c819
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
4 changes: 0 additions & 4 deletions Extras/specs/centos-longview.spec
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,3 @@ if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
service longview restart || :
fi
if [ $1 -eq 0 ]; then
# package remove, not upgrade
rm -rf /etc/linode/
fi
4 changes: 0 additions & 4 deletions Extras/specs/fedora-longview.spec
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,3 @@ if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
/bin/systemctl try-restart longview.service >/dev/null 2>&1 || :
fi
if [ $1 -eq 0 ]; then
# package remove, not upgrade
rm -rf /etc/linode/
fi
3 changes: 1 addition & 2 deletions debian/linode-longview.postrm
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ fi

if [ "$1" = "remove" -o "$1" = "purge" ]; then
update-rc.d -f longview remove
rm -rf /etc/linode/
fi
fi

0 comments on commit 536c819

Please sign in to comment.