local scripts are now made executable by postinstall.sh
This commit is contained in:
@ -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>
|
@ -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"
|
||||
|
@ -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
|
Reference in New Issue
Block a user