24 lines
No EOL
571 B
Bash
Executable file
24 lines
No EOL
571 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
case "$1" in
|
|
configure)
|
|
chown -R timetracker:timetracker /var/lib/timetracker
|
|
|
|
chmod u+x /var/lib/timetracker/timetracker*.sh
|
|
|
|
update-alternatives --install /usr/local/bin/timetracker timetracker /var/lib/timetracker/timetracker-archive.sh 100
|
|
update-alternatives --install /usr/local/bin/timetracker timetracker /var/lib/timetracker/timetracker.sh 1000
|
|
;;
|
|
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0 |