diff options
Diffstat (limited to 'strider.install')
-rw-r--r-- | strider.install | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/strider.install b/strider.install index c697654978ec..063afff0064a 100644 --- a/strider.install +++ b/strider.install @@ -1,4 +1,14 @@ +pre_upgrade() { + echo Removing old files ... + pre_remove +} + +post_upgrade() { + echo Extracting upgrade files ... + post_install +} + post_install() { cd /opt/strider tar zxf strider-bin.tar.gz @@ -11,6 +21,8 @@ pre_remove() { rm -f *.dat rm -f *.pak rm -f *.so - rm -f locales/* - rmdir locales + if [ -d locales ]; then + rm -f locales/* + rmdir locales + fi } |