Skip to content

Commit

Permalink
Consistently use INSTALL_PATH in /install.sh
Browse files Browse the repository at this point in the history
INSTALL_PATH and /var/lib are used alternatingly in the install script.

Replace all hard-coded occurrences of `/var/lib` with `${INSTALL_PATH}` (as appropriate and following the script style).
  • Loading branch information
mouchtaris authored May 22, 2021
1 parent a8ec9cf commit a1b7c2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ function run() {
echo "Installing with no inventory git url; set later in $CONFIG_FILE"
fi

if [[ -e /var/lib/aviary ]]; then
if [[ -e ${INSTALL_PATH}/aviary ]]; then
echo "Found existing installation at $INSTALL_PATH; exiting"
exit 1
fi

echo Installing to ${INSTALL_PATH}...
mkdir -p ${INSTALL_PATH}/aviary
curl -s $RELEASE_URL | tar --strip-components=1 -C ${INSTALL_PATH}/aviary -xz
ln -sf /var/lib/aviary/av /usr/bin/av
ln -sf ${INSTALL_PATH}/aviary/av /usr/bin/av
mkdir -p ${INSTALL_PATH}/aviary/inventory

if [[ ! -z "$INVENTORY_GIT_URL" ]]; then
Expand Down

0 comments on commit a1b7c2d

Please sign in to comment.