arch+rscript removed for now

This commit is contained in:
Francois B 2018-03-14 19:44:29 +01:00
parent aa08720074
commit af0f78741e

View file

@ -249,51 +249,14 @@ function addRepo () {
# input : url of package, package name # input : url of package, package name
# #
function installPackageDpkg () { function installPackageDpkg () {
runCmd "cd /tmp" printf "[PKG] Installing $2 from $1 "
printf "\n" printf "\n[PKG] installing $2 from $1\n" &>> $logFile
runCmd "wget -q -O $2 $1" cd /tmp \
printf "\n" && wget -q -O $2 $1 \
runCmd "sudo dpkg -i $2 " && sudo dpkg -i $2 \
printf "\n" && sudo apt-get install -fy &>> $logFile
runCmd "sudo apt-get install -fy" ret_code=$?
printf "\n" retCode $ret_code
}
#
# install app by remote shell script
# input : script url, script name, opt extra param
#TODO:#TODO:#TODO:#TODO:#TODO:#TODO:#TODO:#TODO:
function installAppRemoteScript () {
runCmd "cd /tmp"
printf "\n"
runCmd "wget -q -O $2 $1"
printf "\n"
runCmd "chmod +x $2"
printf "\n"
}
#
# install app from archive
# input : archive url, archive name, archive type, orig dir, dest dir
#TODO:#TODO:#TODO:#TODO:#TODO:#TODO:#TODO:#TODO:
function installAppFromArchive () {
runCmd "cd /tmp"
printf "\n"
runCmd "wget -q -O $2 $1"
printf "\n"
case "$3" in
"tgz")
runCmd "tar xzf $2"
printf "\n"
;;
"xz")
runCmd "tar xvJf $2"
printf "\n"
;;
esac
runCmd "mkdir -p $5"
printf "\n"
} }
# #