mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 10:35:40 +08:00
3proxy-linux-install.sh corrected for location in scripts/
This commit is contained in:
parent
1b12f365ba
commit
2049886dcf
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 3proxy build and install script for Debian Linux v 2.0
|
# 3proxy build and install script for Debian Linux
|
||||||
# (с) Evgeniy Solovyev 2016
|
# Release 2.0 at 29.12.2016
|
||||||
|
# (с) Evgeniy Solovyev
|
||||||
# mail-to: eugen-soloviov@yandex.ru
|
# mail-to: eugen-soloviov@yandex.ru
|
||||||
|
|
||||||
ScriptPath=""
|
ScriptPath=""
|
||||||
@ -63,12 +64,12 @@ CheckLocation()
|
|||||||
{
|
{
|
||||||
Src3proxyDirPath="${ScriptPath}"
|
Src3proxyDirPath="${ScriptPath}"
|
||||||
|
|
||||||
if echo ${ScriptPath} | grep -e "/scripts/debian$"
|
if echo ${ScriptPath} | grep -e "/scripts$"
|
||||||
then
|
then
|
||||||
if [ -e "../../src/version.h" ]
|
if [ -e "../src/version.h" ]
|
||||||
then
|
then
|
||||||
ProxyVersion=`cat "../../src/version.h" | awk '/VERSION/ { gsub("\"", "\n"); print; exit }' | grep "3proxy"`
|
ProxyVersion=`cat "../src/version.h" | awk '/VERSION/ { gsub("\"", "\n"); print; exit }' | grep "3proxy"`
|
||||||
cd ../../
|
cd ../
|
||||||
SourceRoot="${PWD}"
|
SourceRoot="${PWD}"
|
||||||
cd ../
|
cd ../
|
||||||
Src3proxyDirPath="${PWD}"
|
Src3proxyDirPath="${PWD}"
|
||||||
|
Loading…
Reference in New Issue
Block a user