forked from I2P_Developers/i2p.i2p
Update in the install_i2p_service_osx.command script.
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# 2012, The I2P Project
|
||||
# http://www.i2p2.de/
|
||||
# This code is public domain.
|
||||
# Author: Meeh
|
||||
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
I2PDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
shfile="tmp$$.sh"
|
||||
|
||||
echo -n 'cat `pwd`/net.i2p.router.plist.template |' > `pwd`/$shfile
|
||||
echo -n "sed 's#USERNAME#`whoami`#' " >> `pwd`/$shfile
|
||||
echo -n '| sed "s#COMMAND#`pwd`/i2prouter#" | sed "s#I2PPATH#`pwd`/#" > /Library/LaunchDaemons/net.i2p.router.plist' >> `pwd`/$shfile
|
||||
chmod +x `pwd`/$shfile
|
||||
echo "Please enter your password for sudo privileges to install I2P as a launchd service"
|
||||
|
||||
sudo ./$shfile
|
||||
sudo chown root:wheel /Library/LaunchDaemons/net.i2p.router.plist
|
||||
sudo launchctl load -wF /Library/LaunchDaemons/net.i2p.router.plist
|
||||
|
||||
Reference in New Issue
Block a user