3 # arg 1: the new package version
4 # arg 2: the old package version
6 # change uid of old version
7 if (( $(vercmp $2 3.2.1-8) < 0 )); then
8 if pgrep -u backuppc >/dev/null; then
9 echo '==> backuppc user is running.'
10 echo '==> You must manually change uid and gid of backuppc!'
11 echo '==> e.g: usermod -u 126 -g 126 backuppc'
13 usermod -u 126 -g 126 backuppc
14 echo '==> backuppc uid/gid have changed. Check your filesystem permissions.'
17 if (( $(vercmp $2 4.0.0-1) <= 0 )); then
18 echo '==> Major update. Remember to merge new variables in config.pl!'
23 # vim:set ts=2 sw=2 ft=sh et: