Skip to content

Commit

Permalink
Create and decompress to the release directory
Browse files Browse the repository at this point in the history
  • Loading branch information
probably-not committed Jan 6, 2025
1 parent 542be3d commit cea085b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/flame_ec2/templates/start.sh.eex
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ mkdir -p "${APP_DIR}" || {
exit 1
}

mkdir -p "${RELEASE_DIR}" || {
log "Failed to create ${RELEASE_DIR}"
exit 1
}

cd "${APP_DIR}" || {
log "Failed to change to ${APP_DIR}"
exit 1
Expand All @@ -96,7 +101,7 @@ else
log "Failed to download from S3"
exit 1
}
tar xzf release.tar.gz || {
tar xzf release.tar.gz -C ${RELEASE_DIR} || {
log "Failed to extract release.tar.gz"
rm -f release.tar.gz
exit 1
Expand Down

0 comments on commit cea085b

Please sign in to comment.