Changeset 24195


Ignore:
Timestamp:
10/11/13 00:34:01 (8 years ago)
Author:
obi
Message:

[tpk] e2webserv fix control files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/networklib_e2webserv/CONTROL/postinst

    r24193 r24195  
    33
    44if [ -f /mnt/config/usercmd.sh ]; then
    5         sed -i "/^exit/i$INSTDIR/bin/e2webserv -b -c /mnt/config/e2webserv.conf" /mnt/config/usercmd.sh
     5        sed -i "/^exit/i$INSTDIR/bin/e2webserv -b -c $INSTDIR/config/e2webserv.conf" /mnt/config/usercmd.sh
    66fi
    77
    8 if [ ! -e /mnt/config/e2webserv.conf ]; then
     8if [ ! -e $INSTDIR/config/e2webserv.conf ]; then
    99        echo "use TPK config file"
    10         mv /mnt/config/e2webserv.conf.e2 /mnt/config/e2webserv.conf
    11         chmod -x /mnt/config/e2webserv.conf
     10        mv $INSTDIR/config/e2webserv.conf.e2 $INSTDIR/config/e2webserv.conf
     11        chmod -x $INSTDIR/config/e2webserv.conf
    1212else
    1313        echo "found user config file"
     
    1616
    1717echo "start e2webserv..."
    18 $INSTDIR/e2webserv -b -c /mnt/config/e2webserv.conf > /dev/null 2>&1
     18$INSTDIR/e2webserv -b -c $INSTDIR/config/e2webserv.conf > /dev/null 2>&1
    1919echo "done."
    2020
Note: See TracChangeset for help on using the changeset viewer.