Skip to content

Commit

Permalink
updatings to only update if user is populated
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtallcampbell committed Jul 27, 2024
1 parent 64a1320 commit 354790b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/deploy_spacefx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,13 @@ function main() {
write_parameter_to_log ARCHITECTURE
write_parameter_to_log DEV_ENVIRONMENT

info_log "Updating ownership of ${SPACEFX_DIR}..."
run_a_script "chown -R \${USER}:\${USER} ${SPACEFX_DIR}"
info_log "...successfully updated ownership of ${SPACEFX_DIR}"
if [[ -n "${USER}" ]]; then
info_log "Updating ownership of ${SPACEFX_DIR}..."
run_a_script "chown -R ${USER}:${USER} ${SPACEFX_DIR}"
info_log "...successfully updated ownership of ${SPACEFX_DIR}"
fi



check_and_create_certificate_authority

Expand Down

0 comments on commit 354790b

Please sign in to comment.