diff options
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/lighttpd/run | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/lighttpd/run b/abs/core/runit-scripts/runitscripts/services/lighttpd/run index f9c574d..3ac10e5 100755 --- a/abs/core/runit-scripts/runitscripts/services/lighttpd/run +++ b/abs/core/runit-scripts/runitscripts/services/lighttpd/run @@ -4,6 +4,21 @@ export TERM=linux . /etc/rc.d/functions stat_runit "Starting lighttpd" +#---creating ssl cert +if [ ! -f /etc/lighttpd/linhes.pem ] +then + . /etc/systemconfig + /usr/bin/openssl req -new -x509 -keyout /etc/lighttpd/linhes.pem -out /etc/lighttpd/linhes.pem -days 4390 -nodes -subj "/C=/ST=/L=/O=LinHES/OU=LinHES Entertainment Server/CN=$hostname" + if [ $? = 0 ] + then + echo "include \"/etc/lighttpd/ssl-inc.conf\"" > /etc/gen_light_conf.d/ssl-inc.conf + else + rm -f /etc/lighttpd/linhes.pem + fi + /usr/LH/bin/gen_light_include.py +fi +#--end creating ssl cert + if [ ! -d /var/run/lighttpd ] ; then mkdir -p /var/run/lighttpd chown http /var/run/lighttpd |