helper/cdebootstrap-helper-apt/DEBIAN/postinst
raw| 1 | #! /bin/sh |
| 2 | set -e |
| 3 | |
| 4 | case "$1" in |
| 5 | configure) |
| 6 | echo "deb bootstrap: . main" > /etc/apt/sources.list |
| 7 | apt-get -o Acquire::Languages=none -o Debug::NoLocking=1 -o APT::Keep-Fds::=4 update 4<>/dev/null |
| 8 | ;; |
| 9 | |
| 10 | abort-upgrade|abort-remove|abort-deconfigure) |
| 11 | ;; |
| 12 | |
| 13 | *) |
| 14 | echo "postinst called with unknown argument \`$1'" >&2 |
| 15 | exit 1 |
| 16 | ;; |
| 17 | esac |
| 18 | |
| 19 | exit 0 |