diff options
Diffstat (limited to 'www/shellinabox/files/shellinaboxd.in')
-rw-r--r-- | www/shellinabox/files/shellinaboxd.in | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/www/shellinabox/files/shellinaboxd.in b/www/shellinabox/files/shellinaboxd.in index 8208a2c9e3c1..1614064fad23 100644 --- a/www/shellinabox/files/shellinaboxd.in +++ b/www/shellinabox/files/shellinaboxd.in @@ -18,6 +18,8 @@ # shellinaboxd_pidfile="/var/run/shellinabox.pid" # shellinaboxd_port="4200" # shellinaboxd_certdir="%%PREFIX%%/etc/shellinabox" +# shellinaboxd_certfile="" +# Example: shellinaboxd_certfile="/your/cert.pem" # shellinaboxd_flags="" shellinaboxd_setfib() { @@ -49,8 +51,13 @@ shellinaboxd_certdir=${shellinaboxd_certdir:-"%%PREFIX%%/etc/shellinabox"} pidfile=${shellinaboxd_pidfile:-"/var/run/shellinaboxd.pid"} -required_dirs="${shellinaboxd_certdir}" +command_args="--group=shellinabox --user=shellinabox --port=${shellinaboxd_port} --background=${pidfile}" -command_args="--group=shellinabox --user=shellinabox --port=${shellinaboxd_port} --cert=${shellinaboxd_certdir} --background=${pidfile}" +if [ "${shellinaboxd_certfile}" = "" ]; then + required_dirs="${shellinaboxd_certdir}" + command_args="$command_args --cert=${shellinaboxd_certdir}" +else + command_args="$command_args --cert-fd=3 3< ${shellinaboxd_certfile}" +fi run_rc_command "$1" |