[Solved] overwrite conf using include_shell
Added by kishan.kava over 3 years ago
hello
I'm new to lighttpd.
i had add include_shell to conf file to run shell script
include_shell "/system/var/www/include.sh /etc/lighttpd/lighttpd.conf"
lighttpd version : lighttpd/1.4.38-devel-8d32a11 (ssl) - a light and fast webserver
shell script :
confdir="/etc/lighttpd/" enabled="/App/configuration/lighttpd.conf" cd $confdir if [ -e /App/configuration/lighttpd.conf ]; then echo "include $enable" fi
run command:./system/bin/lighttpd -f etc/lighttpd/lighttpd.conf
error:
(configfile.c.974) source: /system/var/www/include.sh /etc/lighttpd/lighttpd.conf line: 2 pos: 1 parser failed somehow near here: (EOL) (configfile.c.974) source: etc/lighttpd/lighttpd.conf line: 6 pos: 12 parser failed somehow near here: (EOL)
need to change configfile.c
Replies (1)
RE: overwrite conf using include_shell - Added by gstrauss over 3 years ago
If you multi-post, then link to the old post and explain why you are multi-posting. (In other words, don't multi-post without a reason.)
https://redmine.lighttpd.net/boards/2/topics/9807
man lighttpd
orlighttpd -h
Notice the -p
option to the lighttpd command line. Use it when testing.
Strong hint: you're not going to get very far until you update to a less ancient recent version of lighttpd (#2910) or rewrite your shell script without command line args.