lol
at v206 39 lines 1.3 kB view raw
1--- a/installer/resources/runplain.sh 2+++ b/installer/resources/runplain.sh 3@@ -21,7 +21,7 @@ 4 5 # Try using the Java binary that I2P was installed with. 6 # If it's not found, try looking in the system PATH. 7-JAVA=$(which %JAVA_HOME/bin/java || which java) 8+JAVA=%JAVA% 9 10 if [ -z $JAVA ] || [ ! -x $JAVA ]; then 11 echo "Error: Cannot find java." >&2 12@@ -40,15 +40,4 @@ 13 export JAVA_TOOL_OPTIONS="-Djava.awt.headless=true" 14 fi 15 JAVAOPTS="-Djava.net.preferIPv4Stack=${PREFERv4} -Djava.library.path=${I2P}:${I2P}/lib -Di2p.dir.base=${I2P} -DloggerFilenameOverride=logs/log-router-@.txt" 16-( 17- nohup ${JAVA} -cp \"${CP}\" ${JAVAOPTS} net.i2p.router.RouterLaunch > /dev/null 2>&1 18-) & 19-PID=$! 20- 21-if [ ! -z $PID ] && kill -0 $PID > /dev/null 2>&1 ; then 22- echo "I2P started [$PID]" >&2 23- echo $PID > "${I2PTEMP}/router.pid" 24-else 25- echo "I2P failed to start." >&2 26- exit 1 27-fi 28+${JAVA} -cp \"${CP}\" ${JAVAOPTS} net.i2p.router.RouterLaunch 29--- a/installer/resources/i2prouter 30+++ b/installer/resources/i2prouter 31@@ -49,7 +49,7 @@ 32 33 # gettext - we look for it in the path 34 # fallback to echo is below, we can't set it to echo here. 35-GETTEXT=$(which gettext > /dev/null 2>&1) 36+GETTEXT=%gettext% 37 38 # Where to install the systemd service 39 SYSTEMD_SERVICE="/etc/systemd/system/${APP_NAME}.service"