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