source: ipk/source.sh4/networklib_e2webserv/CONTROL/postinst @ 24196

Last change on this file since 24196 was 24196, checked in by obi, 9 years ago

fix

  • Property svn:executable set to *
File size: 548 bytes
Line 
1#!/bin/sh
2INSTDIR="$1"
3
4if [ -f /mnt/config/usercmd.sh ]; then
5        sed -i "/^exit/i$INSTDIR/bin/e2webserv -b -c $INSTDIR/etc/e2webserv.conf" /mnt/config/usercmd.sh
6fi
7
8if [ ! -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
12else
13        echo "found user config file"
14        echo "skip TPK config file: e2webserv.conf.e2"
15fi
16
17echo "start e2webserv..."
18$INSTDIR/bin/e2webserv -b -c $INSTDIR/etc/e2webserv.conf > /dev/null 2>&1
19echo "done."
20
21exit 0
Note: See TracBrowser for help on using the repository browser.