|
Last change
on this file since 46250 was 45684, checked in by obi, 4 years ago |
|
fix last commit
|
-
Property svn:executable
set to
*
|
|
File size:
548 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | INSTDIR="$1"
|
|---|
| 3 |
|
|---|
| 4 | if [ -f /mnt/config/usercmd.sh ]; then
|
|---|
| 5 | sed -i "/^exit/i$INSTDIR/bin/e2webserv -b -c $INSTDIR/etc/e2webserv.conf" /mnt/config/usercmd.sh
|
|---|
| 6 | fi
|
|---|
| 7 |
|
|---|
| 8 | if [ ! -e $INSTDIR/etc/e2webserv.conf ]; then
|
|---|
| 9 | echo "use TPK config file"
|
|---|
| 10 | mv $INSTDIR/etc/e2webserv.conf.e2 $INSTDIR/etc/e2webserv.conf
|
|---|
| 11 | chmod -x $INSTDIR/etc/e2webserv.conf
|
|---|
| 12 | else
|
|---|
| 13 | echo "found user config file"
|
|---|
| 14 | echo "skip TPK config file: e2webserv.conf.e2"
|
|---|
| 15 | fi
|
|---|
| 16 |
|
|---|
| 17 | echo "start e2webserv..."
|
|---|
| 18 | $INSTDIR/bin/e2webserv -b -c $INSTDIR/etc/e2webserv.conf > /dev/null 2>&1
|
|---|
| 19 | echo "done."
|
|---|
| 20 |
|
|---|
| 21 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.