File: how-can-i-help.preinst

package info (click to toggle)
how-can-i-help 17
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 80 kB
  • sloc: ruby: 288; sh: 12; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 179 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

DATADIR="/var/lib/how-can-i-help"

# remove old data directory on upgrade
if [ "$1" = "upgrade" ] && [ -d "$DATADIR" ]
then
  rm -rf "$DATADIR"
fi

#DEBHELPER#