Changeset 33b9a5c


Ignore:
Timestamp:
May 28, 2011 8:14:36 PM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
9834a36
Parents:
c9c35a3
Message:

Make runplain shell agnostic

Braces were put around variable names so that router will run in kFreeBSD.
runplain.sh should now be shell agnostic (it runs in dash. it even runs in
*posh*, a ridiculously picky shell).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • installer/resources/runplain.sh

    rc9c35a3 r33b9a5c  
    1515I2PTEMP="%SYSTEM_java_io_tmpdir"
    1616
    17 export CP="$I2P" ; for j in "$I2P/lib/*"  ; do export CP="$CP:$j" ; done;
     17export CP="${I2P}" ; for j in "${I2P}/lib/*"  ; do export CP="${CP}:${j}" ; done;
    1818JAVA=java
    1919
    20 JAVAOPTS="-Djava.library.path=$I2P:$I2P/lib -Di2p.dir.base=$I2P -DloggerFilenameOverride=logs/log-router-@.txt"
    21 nohup $JAVA -cp "$CP" $JAVAOPTS net.i2p.router.RouterLaunch > /dev/null 2>&1 &
    22 echo $! > "$I2PTEMP/router.pid"
     20JAVAOPTS="-Djava.library.path=$ {I2P}:${I2P}/lib -Di2p.dir.base=${I2P} -DloggerFilenameOverride=logs/log-router-@.txt"
     21nohup ${JAVA} -cp "${CP}" ${JAVAOPTS} net.i2p.router.RouterLaunch > /dev/null 2>&1 &
     22echo $! > "${I2PTEMP}/router.pid"
Note: See TracChangeset for help on using the changeset viewer.