summarylogtreecommitdiffstats
path: root/strider.install
blob: 063afff0064a46b30980c6512f80c2eff5ad0885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

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
  rm -f strider-bin.tar.gz
}

pre_remove() {
  cd /opt/strider
  rm -f Strider
  rm -f *.dat
  rm -f *.pak
  rm -f *.so
  if [ -d locales ]; then
    rm -f locales/*
    rmdir locales
  fi
}