Skip to content

Commit

Permalink
pg-log-folder-create-if-not-present (#8725)
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Shankar <[email protected]>
  • Loading branch information
vivekshankar1 authored Dec 27, 2024
1 parent 5a7b0e6 commit a04db77
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ ensure_dir_ownership() {
pg_log_dir={{pkg.svc_var_path}}/pg_log
if [ -d "$pg_log_dir" ]; then
chmod 0644 "$pg_log_dir"
else
echo "pg_log directory does not exist"
mkdir -p "$pg_log_dir"
chmod 0644 "$pg_log_dir"
ls -l "$pg_log_dir"
fi
}

Expand Down

0 comments on commit a04db77

Please sign in to comment.