added golang dependency for Slipstreamadded golang dependency for Slipstream
This commit is contained in:
parent
c7058b92ce
commit
b3613062c6
1 changed files with 19 additions and 2 deletions
|
|
@ -9,7 +9,11 @@ rundir="${BASH_SOURCE[0]%/*}"
|
||||||
if [ ! -z $prbl_functions ] ; then
|
if [ ! -z $prbl_functions ] ; then
|
||||||
source $prbl_functions
|
source $prbl_functions
|
||||||
else
|
else
|
||||||
source <(curl -ks 'https://raw.githubusercontent.com/pyr0ball/PRbL/master/functions')
|
if [ -f ${rundir}/functions ] ; then
|
||||||
|
source ${rundir}/functions
|
||||||
|
else
|
||||||
|
source <(curl -ks 'https://raw.githubusercontent.com/pyr0ball/PRbL/master/functions')
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
logfile="${rundir}/${pretty_date}_${scriptname}.log"
|
logfile="${rundir}/${pretty_date}_${scriptname}.log"
|
||||||
|
|
@ -33,6 +37,10 @@ repo_packages=(
|
||||||
https://github.com/BruceDLong/Slipstream.git
|
https://github.com/BruceDLong/Slipstream.git
|
||||||
)
|
)
|
||||||
|
|
||||||
|
prbl_packages=(
|
||||||
|
golang.install
|
||||||
|
)
|
||||||
|
|
||||||
codedog_bashrc="# CodeDog system path setup
|
codedog_bashrc="# CodeDog system path setup
|
||||||
export PATH=\"\$PATH:\$HOME/devl/CodeDog\"
|
export PATH=\"\$PATH:\$HOME/devl/CodeDog\"
|
||||||
"
|
"
|
||||||
|
|
@ -58,7 +66,9 @@ check-deps(){
|
||||||
|
|
||||||
install-deps(){
|
install-deps(){
|
||||||
logger echo "Installing packages $sys_packages"
|
logger echo "Installing packages $sys_packages"
|
||||||
run "for $_package in $sys_packages ; do sudo apt-get install -y $_package ; done"
|
for _package in $sys_packages ; do
|
||||||
|
run sudo apt-get install -y $_package
|
||||||
|
done
|
||||||
if [ -f ${rundir}/requirements.txt ] ; then
|
if [ -f ${rundir}/requirements.txt ] ; then
|
||||||
pip install -y ${rundir}/requirements.txt
|
pip install -y ${rundir}/requirements.txt
|
||||||
else
|
else
|
||||||
|
|
@ -66,6 +76,13 @@ install-deps(){
|
||||||
pip install -y ${pip_packages[@]}
|
pip install -y ${pip_packages[@]}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
for _package in $prbl_packages ; do
|
||||||
|
if [[ $dry_run != true ]] ; then
|
||||||
|
bash "${rundir}/$_package -i"
|
||||||
|
else
|
||||||
|
bash "${rundir}/$_package -D"
|
||||||
|
fi
|
||||||
|
done
|
||||||
# Sets dependency installed flag to true
|
# Sets dependency installed flag to true
|
||||||
depsinstalled=true
|
depsinstalled=true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue