From 3faf4a9681138955587ad83e601205d12cebf635 Mon Sep 17 00:00:00 2001 From: "committer@tuxwarrior" Date: Mon, 24 Feb 2025 20:12:47 -0500 Subject: [PATCH] u --- scripts/99_deploy.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/99_deploy.sh b/scripts/99_deploy.sh index 05f6af9..092570b 100755 --- a/scripts/99_deploy.sh +++ b/scripts/99_deploy.sh @@ -69,9 +69,16 @@ create_dir() { echo "error: unable to create the directory '${_directory}'" echo " command:" echo " runuser -l ${system_user} -c '${mkdir_command}'" - + echo "will try creating the directory as root, and changing owner" mkdir -p "${_directory}" + sudo chown -R ${system_user}:${system_user} "${_directory}" + if [ -d "$_directory" ] + then + echo "success!" + else + echo "failure! directory could not be created." + fi fi }