source: ipk/source.arm/networklib_e2webserv/CONTROL/postinst @ 39499

Last change on this file since 39499 was 39499, checked in by gost, 4 years ago

add arm plugins

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.