root/alternc-awstats/tags/REL_0_3/debian/preinst
| Revision 1030, 464 bytes (checked in by anonymous, 4 years ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | #!/bin/sh -e |
| 2 | |
| 3 | # Debian alternc-awstats preinst |
| 4 | # Benjamin Sonntag <benjamin@alternc.org> |
| 5 | |
| 6 | case "$1" in |
| 7 | |
| 8 | install) |
| 9 | ;; |
| 10 | |
| 11 | upgrade) |
| 12 | # Which old version ? |
| 13 | version=$2 |
| 14 | # Normally we should not go here since it's version 1 TODO : add code here for upgrades. |
| 15 | # dpkg --compare-versions will surely be useful some day |
| 16 | ;; |
| 17 | |
| 18 | abort-upgrade) |
| 19 | ;; |
| 20 | |
| 21 | *) |
| 22 | echo "preinst called with unknown argument '$1'" >&2 |
| 23 | exit 1 |
| 24 | ;; |
| 25 | esac |
| 26 | |
| 27 | #DEBHELPER# |
| 28 | |
| 29 | exit 0 |
Note: See TracBrowser for help on using the browser.
