diff options
| author | Britney Fransen <brfransen@gmail.com> | 2013-10-16 20:41:16 (GMT) |
|---|---|---|
| committer | Britney Fransen <brfransen@gmail.com> | 2013-10-16 20:41:16 (GMT) |
| commit | 4fb36a904c3818185105d2fe09adc512c46285c7 (patch) | |
| tree | 56c1deb162824e4695133a955a6022e90282dd79 /abs/extra/shellinabox/shellinaboxd.install | |
| parent | 2648e999d277eac5c3d331a3609bcc73fafbea71 (diff) | |
| parent | 36f4b0be52fddbd5f491da90475e69c25bf6903f (diff) | |
| download | linhes_pkgbuild-4fb36a904c3818185105d2fe09adc512c46285c7.zip linhes_pkgbuild-4fb36a904c3818185105d2fe09adc512c46285c7.tar.gz linhes_pkgbuild-4fb36a904c3818185105d2fe09adc512c46285c7.tar.bz2 | |
Merge branch 'testing'
Diffstat (limited to 'abs/extra/shellinabox/shellinaboxd.install')
| -rw-r--r-- | abs/extra/shellinabox/shellinaboxd.install | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/abs/extra/shellinabox/shellinaboxd.install b/abs/extra/shellinabox/shellinaboxd.install new file mode 100644 index 0000000..1fb3a79 --- /dev/null +++ b/abs/extra/shellinabox/shellinaboxd.install @@ -0,0 +1,24 @@ +post_install() { + echo "Generate lighttpd include..." + gen_light_include.py + echo "Create link to linhes.pem..." + ln -s /etc/lighttpd/linhes.pem /etc/lighttpd/certificate.pem + echo "Start runit service for shellinaboxd..." + add_service.sh shellinaboxd + /sbin/sv restart shellinaboxd +} + +post_upgrade() { + post_install +} + +post_remove() { + echo "Generate lighttpd include..." + gen_light_include.py + echo "Forcing a re-read of lighttpd's configuration file..." + /sbin/sv hup /service/lighttpd + echo "Remove link to linhes.pem..." + rm /etc/lighttpd/certificate.pem + echo "Remove runit service for shellinaboxd..." + remove_service.sh shellinaboxd +} |
