From 354790bf36061e6f3b5ce82d940aca3db40267d6 Mon Sep 17 00:00:00 2001 From: BigTallCampbell Date: Sat, 27 Jul 2024 21:59:08 +0000 Subject: [PATCH] updatings to only update if user is populated --- scripts/deploy_spacefx.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/deploy_spacefx.sh b/scripts/deploy_spacefx.sh index 184245b..7286e25 100755 --- a/scripts/deploy_spacefx.sh +++ b/scripts/deploy_spacefx.sh @@ -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