more path woes solved, scripts launch properly from installer (yay!)

This commit is contained in:
hypercubus
2004-08-26 19:08:25 +00:00
committed by zzz
parent e3379b31cb
commit d8eb1a0a4f
3 changed files with 12 additions and 8 deletions

View File

@ -225,8 +225,8 @@
<copy file="installer/resources/install_i2p_service_unix" todir="pkg-temp/" /> <copy file="installer/resources/install_i2p_service_unix" todir="pkg-temp/" />
<copy file="installer/resources/install_i2p_service_winnt.bat" todir="pkg-temp/" /> <copy file="installer/resources/install_i2p_service_winnt.bat" todir="pkg-temp/" />
<copy file="installer/resources/osid" todir="pkg-temp/" /> <copy file="installer/resources/osid" todir="pkg-temp/" />
<copy file="installer/resources/postinstall.sh" todir="pkg-temp/" />
<copy file="installer/resources/postinstall.bat" todir="pkg-temp/" /> <copy file="installer/resources/postinstall.bat" todir="pkg-temp/" />
<copy file="installer/resources/postinstall.sh" todir="pkg-temp/" />
<copy file="installer/resources/systray.config" todir="pkg-temp/" /> <copy file="installer/resources/systray.config" todir="pkg-temp/" />
<copy file="installer/resources/uninstall_i2p_service_unix" todir="pkg-temp/" /> <copy file="installer/resources/uninstall_i2p_service_unix" todir="pkg-temp/" />
<copy file="installer/resources/uninstall_i2p_service_winnt.bat" todir="pkg-temp/" /> <copy file="installer/resources/uninstall_i2p_service_winnt.bat" todir="pkg-temp/" />

View File

@ -7,8 +7,8 @@
</job> </job>
<job name="Launching I2P..."> <job name="Launching I2P...">
<os family="unix" /> <os family="unix" />
<executefile name="$INSTALL_PATH/sh"> <executefile name="/bin/sh">
<arg>postinstall.sh</arg> <arg>$INSTALL_PATH/postinstall.sh</arg><arg>$INSTALL_PATH</arg>
</executefile> </executefile>
</job> </job>
</processing> </processing>

View File

@ -12,11 +12,14 @@
# Installs the appropriate set of Java Service Wrapper support files for the # Installs the appropriate set of Java Service Wrapper support files for the
# user's OS then launches the I2P router as a background service. # user's OS then launches the I2P router as a background service.
chmod 744 i2prouter if [ $1 ]; then
chmod 744 i2psvc cd $1
chmod 744 install_i2p_service_unix fi
chmod 744 osid
chmod 744 uninstall_i2p_service_unix chmod 744 ./i2prouter
chmod 744 ./install_i2p_service_unix
chmod 744 ./osid
chmod 744 ./uninstall_i2p_service_unix
ERROR_MSG="Cannot determine operating system type. From the subdirectory in lib/wrapper matching your operating system, please move i2psvc to your base I2P directory, and move the remaining two files to the lib directory." ERROR_MSG="Cannot determine operating system type. From the subdirectory in lib/wrapper matching your operating system, please move i2psvc to your base I2P directory, and move the remaining two files to the lib directory."
HOST_OS=`./osid` HOST_OS=`./osid`
@ -46,6 +49,7 @@ case $HOST_OS in
esac esac
cp $wrapperpath/i2psvc . cp $wrapperpath/i2psvc .
chmod 744 ./i2psvc
cp $wrapperpath/* ./lib/ cp $wrapperpath/* ./lib/
./i2prouter start ./i2prouter start
exit 0 exit 0