1 ## arg 1: the new package version
3 if [ -e "/etc/zeitgeist-userspace.conf" ]; then
4 cp /etc/zeitgeist-userspace.conf /tmp/zeitgeist-userspace.conf
7 if [ -e "/etc/conf.d/zeitgeist-userspace.conf" ]; then
8 cp /etc/conf.d/zeitgeist-userspace.conf /tmp/zeitgeist-userspace.conf
13 ## arg 1: the new package version
15 if [ -e "/tmp/zeitgeist-userspace.conf" ]; then
16 mv /tmp/zeitgeist-userspace.conf /etc/conf.d/zeitgeist-userspace.conf
19 echo "Remember to edit /etc/conf.d/zeitgeist-userspace.conf"
22 ## arg 1: the new package version
23 ## arg 2: the old package version
24 pre_upgrade() { # Save old config
25 if [ -e "/etc/zeitgeist-userspace.conf" ]; then
26 cp /etc/zeitgeist-userspace.conf /tmp/zeitgeist-userspace.conf
29 if [ -e "/etc/conf.d/zeitgeist-userspace.conf" ]; then
30 cp /etc/conf.d/zeitgeist-userspace.conf /tmp/zeitgeist-userspace.conf
34 ## arg 1: the new package version
35 ## arg 2: the old package version
36 post_upgrade() { # restore old config
37 if [ -e "/tmp/zeitgeist-userspace.conf" ]; then
38 mv /tmp/zeitgeist-userspace.conf /etc/conf.d/zeitgeist-userspace.conf
42 ## arg 1: the old package version
47 ## arg 1: the old package version
52 # vim:set ts=2 sw=2 et: