Merge pull request #70 from rstudio/jc-update
Update repository indexes before installing (fixes #66)
This commit is contained in:
commit
55814eebc7
1 changed files with 9 additions and 0 deletions
|
|
@ -248,6 +248,9 @@ install_deb () {
|
||||||
yes="--n"
|
yes="--n"
|
||||||
yesapt="-y"
|
yesapt="-y"
|
||||||
fi
|
fi
|
||||||
|
echo "Updating package indexes..."
|
||||||
|
${SUDO} apt-get update
|
||||||
|
echo "Installing ${installer_name}..."
|
||||||
${SUDO} apt-get install ${yesapt} gdebi-core
|
${SUDO} apt-get install ${yesapt} gdebi-core
|
||||||
${SUDO} gdebi ${yes} "${installer_name}"
|
${SUDO} gdebi ${yes} "${installer_name}"
|
||||||
}
|
}
|
||||||
|
|
@ -269,6 +272,9 @@ install_rpm () {
|
||||||
echo "Must have sudo privileges to run yum"
|
echo "Must have sudo privileges to run yum"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
echo "Updating package indexes..."
|
||||||
|
${SUDO} yum check-update -y
|
||||||
|
echo "Installing ${installer_name}..."
|
||||||
${SUDO} yum install ${yes} "${installer_name}"
|
${SUDO} yum install ${yes} "${installer_name}"
|
||||||
;;
|
;;
|
||||||
"LEAP12" | "LEAP15" | "SLES12" | "SLES15")
|
"LEAP12" | "LEAP15" | "SLES12" | "SLES15")
|
||||||
|
|
@ -276,6 +282,9 @@ install_rpm () {
|
||||||
echo "Must have sudo privileges to run zypper"
|
echo "Must have sudo privileges to run zypper"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
echo "Updating package indexes..."
|
||||||
|
${SUDO} zypper refresh
|
||||||
|
echo "Installing ${installer_name}..."
|
||||||
${SUDO} zypper --no-gpg-checks install ${yes} "${installer_name}"
|
${SUDO} zypper --no-gpg-checks install ${yes} "${installer_name}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue