This commit is contained in:
committer@tuxwarrior
2025-02-24 19:51:03 -05:00
parent a75f8e4e7b
commit a70f577959

View File

@@ -61,9 +61,14 @@ create_dir() {
_directory=$1
mkdir_command="mkdir -p \"${_directory}\""
echo "${mkdir_command}"
runuser -l ${system_user} -c '${mkdir_command}'
if ! [ -d "$_directory" ]
then
echo "error: unable to created the directory '${_directory}'"
echo "failed command: '${mkdir_command}'"
fi
}
deploy_file() {