diff --git a/install.sh b/install.sh index bc8980f..b5c7d57 100755 --- a/install.sh +++ b/install.sh @@ -21,26 +21,42 @@ if (( $EUID != 0 )); then fi if [ -z "$1" ]; then - echo "./install.sh " + echo "./install.sh " exit 1 fi if [ ! -e ngrok.service ]; then git clone --depth=1 https://github.com/safaksoylu/homeip.git - cd systemd-ngrok + cd homeip fi cp ngrok.service /lib/systemd/system/ +cp socks5.service /lib/systemd/system/ + mkdir -p /opt/ngrok +mkdir -p /opt/socks5 + cp ngrok.yml /opt/ngrok +cp socks5 /opt/socks5 + sed -i "s//$1/g" /opt/ngrok/ngrok.yml sed -i "s//$2/g" /opt/ngrok/ngrok.yml sed -i "s//$3/g" /opt/ngrok/ngrok.yml +sed -i "s//$4/g" /lib/systemd/system/socks5.service +sed -i "s//$5/g" /lib/systemd/system/socks5.service +sed -i "s//$6/g" /lib/systemd/system/socks5.service + cd /opt/ngrok wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip unzip ngrok-stable-linux-amd64.zip rm ngrok-stable-linux-amd64.zip chmod +x ngrok +cd /opt/socks5 +chmod +x socks5 + systemctl enable ngrok.service systemctl start ngrok.service + +systemctl enable socks5.service +systemctl start socks5.service