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

Last change on this file was 46274, checked in by obi, 3 years ago

update lost files with install echo

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