Replaced all references to ~ with EHOME.

This commit is contained in:
Scott Duensing 2022-09-28 20:09:14 -05:00
parent 6d9d2fa4d9
commit 189535154a

View file

@ -81,9 +81,9 @@ function buildIIgsSDK() {
mkdir -p "${IIGS}/ORCA"
chmod 777 "${IIGS}/ORCA"
mkdir -p ~/.ssh
cp -f "${PUBLIC}" ~/.ssh/id_rsa.pub
cp -f "${PRIVATE}" ~/.ssh/id_rsa
mkdir -p ${EHOME}/.ssh
cp -f "${PUBLIC}" ${EHOME}/.ssh/id_rsa.pub
cp -f "${PRIVATE}" ${EHOME}/.ssh/id_rsa
touch ${EHOME}/.ssh/authorized_keys
touch ${EHOME}/.ssh/config
chmod go-w ${EHOME}
@ -120,7 +120,7 @@ function buildIIgsSDK() {
sudo chown $(id -ru):$(id -rg) "${IIGS}/ORCA/."
if [[ ! -d GoldenGate ]]; then
ssh-keygen -F gitlab.com || ssh-keyscan gitlab.com > ~/.ssh/known_hosts
ssh-keygen -F gitlab.com || ssh-keyscan gitlab.com > ${EHOME}/.ssh/known_hosts
git config --global credential.helper cache
git clone https://${GGUSER}:${GGPASS}@gitlab.com/GoldenGate/GoldenGate.git
fi