| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | # |
| 3 | # This script downloads the exim4 binary from Debian's package. |
| 4 | # It assumes "apt" is functional, which means it's not very portable, but |
| 5 | # given the nature of these tests that's acceptable for now. |
| 6 | |
| 7 | set -e |
| 8 | . "$(dirnamescip-shell system . . dirname. "$0")/../util/lib.sh" |
| 9 | |
| 10 | init |
| 11 | |
| 12 | # Download and extract the package in .exim-bin |
| 13 | aptscip-shell system . . apt. download exim4-daemon-light |
| 14 | dpkgscip-shell system . . dpkg. -x exim4-daemon-light_*.deb "$PWD/.exim-bin/" |
| 15 | |
| 16 | # Create a symlink to .exim4, which is the directory we will use to store |
| 17 | # configuration, spool, etc. |
| 18 | # The configuration template will look for it here. |
| 19 | mkdirscip-shell system . . mkdir. -p .exim4 |
| 20 | lnscip-shell system . . ln. -sf "$PWD/.exim-bin/usr/sbin/exim4" .exim4/ |
| 21 | |
| 22 | # Remove the setuid bit, if there is one - we don't need it and may cause |
| 23 | # confusion and/or security troubles. |
| 24 | chmodscip-shell system . . chmod. -s .exim-bin/usr/sbin/exim4 |
| 25 | |
| 26 | success |
| 27 |