diff options
author | root <root@rshg054.dnsready.net> | 2013-07-17 00:58:52 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-17 00:58:52 -0700 |
commit | dee9f17b595ea903a982d31d1124b302bb17e2ff (patch) | |
tree | 295fdab78e28e1952fbc13ce824d57c88ede4e3b /community/preload/preload.install | |
parent | 380530d02a5449fdef97b63b394a6743c3de0092 (diff) |
Wed Jul 17 00:58:51 PDT 2013
Diffstat (limited to 'community/preload/preload.install')
-rw-r--r-- | community/preload/preload.install | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/community/preload/preload.install b/community/preload/preload.install deleted file mode 100644 index 2c758c265..000000000 --- a/community/preload/preload.install +++ /dev/null @@ -1,30 +0,0 @@ -PRELOAD_STATE=/var/lib/preload/preload.state - -# arg 1: the new package version -# arg 2: the old package version -pre_upgrade() { - if [ `vercmp $2 0.6.3-2` -lt 0 ]; then - echo "Backing up your state file..." - cp -af ${PRELOAD_STATE} ${PRELOAD_STATE}.backup - fi -} - -# arg 1: the new package version -# arg 2: the old package version -post_upgrade() { - if [ `vercmp $2 0.6.3-2` -lt 0 -a -f ${PRELOAD_STATE}.backup ]; then - echo "Restoring the state file..." - mv -f ${PRELOAD_STATE}.backup ${PRELOAD_STATE} - fi -} - -# arg 1: the old package version -post_remove() { - echo - echo "Leaving ${PRELOAD_STATE} intact in case one day you want to" - echo "install preload again. If you are sure you don't need it anymore, please" - echo "remove it manually. Log files in /var/log have not been removed as well." - echo -} - -# vim:set ts=2 sw=2 et: |