local scripts are now made executable by postinstall.sh

This commit is contained in:
hypercubus
2004-08-26 17:22:37 +00:00
committed by zzz
parent 53213bb553
commit b31378ad1a
3 changed files with 12 additions and 2 deletions

View File

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

View File

@ -11,6 +11,7 @@
:: I2P router as a background service.
@echo off
setlocal
set INSTALL_PATH=%~dp0
copy "%INSTALL_PATH%lib\wrapper\win32\I2Psvc.exe" "%INSTALL_PATH%"
copy "%INSTALL_PATH%lib\wrapper\win32\wrapper.dll" "%INSTALL_PATH%lib"

View File

@ -12,7 +12,13 @@
# Installs the appropriate set of Java Service Wrapper support files for the
# user's OS then launches the I2P router as a background service.
ERROR_MSG="Cannot determine operating system type. Please move the service files manually from the subdirectory in lib/wrapper for your OS."
chmod 744 i2prouter
chmod 744 i2psvc
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."
HOST_OS=`./osid`
if [[ ! $HOST_OS || $HOST_OS = "unknown" ]]; then
@ -41,4 +47,5 @@ esac
cp $wrapperpath/i2psvc .
cp $wrapperpath/* ./lib/
./i2prouter start
exit 0