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

Last change on this file since 46288 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
3echo Use Install Dest: $1
4echo Start Install Script: $0
5
6INSTDIR="$1"
7
8if [ -f /mnt/config/usercmd.sh ]; then
9 sed -i "/^exit/i$INSTDIR/bin/e2webserv -b -c $INSTDIR/etc/e2webserv.conf" /mnt/config/usercmd.sh
10fi
11
12if [ ! -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
16else
17 echo "found user config file"
18 echo "skip TPK config file: e2webserv.conf.e2"
19fi
20
21echo "start e2webserv..."
22$INSTDIR/bin/e2webserv -b -c $INSTDIR/etc/e2webserv.conf > /dev/null 2>&1
23echo "done."
24
25exit 0
Note: See TracBrowser for help on using the repository browser.