Skip to content

Commit

Permalink
chore: Update deploy script to stop estkme-cloud before installing lp…
Browse files Browse the repository at this point in the history
…ac and estkme-cloud
  • Loading branch information
damonto committed Aug 19, 2024
1 parent bce496f commit 98e87ea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ fi
# Install dependencies.
apt-get update -y && apt-get install -y unzip cmake pkg-config libcurl4-openssl-dev zip curl

# if estkme-cloud is already running stop it.
if supervisorctl status estkme-cloud | grep -q RUNNING; then
supervisorctl stop estkme-cloud
fi

# Download the latest version of lpac and compile it.
LPAC_VERSION=$(curl -Ls https://api.github.com/repos/estkme-group/lpac/releases/latest | grep tag_name | cut -d '"' -f 4)
curl -L -o lpac-"$LPAC_VERSION".zip https://github.com/estkme-group/lpac/archive/refs/tags/"$LPAC_VERSION".zip
Expand All @@ -32,11 +37,6 @@ cp build/output/lpac "$DST_DIR"
cd ..
rm -rf lpac-*

# if estkme-cloud is already running stop it.
if supervisorctl status estkme-cloud | grep -q RUNNING; then
supervisorctl stop estkme-cloud
fi

# Download and Install estkme-cloud.
ESTKME_CLOUD_VERSION=$(curl -Ls https://api.github.com/repos/damonto/estkme-cloud/releases/latest | grep tag_name | cut -d '"' -f 4)
curl -L -o "$DST_DIR"/estkme-cloud https://github.com/damonto/estkme-cloud/releases/download/"$ESTKME_CLOUD_VERSION"/${ESTKME_CLOUD_BINARIES[$(uname -m)]}
Expand Down

0 comments on commit 98e87ea

Please sign in to comment.