From a09f8a65f33d531db63b95ce944bd7f456ce563c Mon Sep 17 00:00:00 2001 From: Michel Thebeau Date: Tue, 7 Jun 2022 21:12:41 -0400 Subject: [PATCH] Create directory for helm overrides backup Add a directory in /opt for postgres user to dump overrides backup during upgrade activate. Test plan: PASS Centos build and install PASS File permissions required for upgrade Story: 2009838 Task: 45642 Change-Id: I0dac1dfdda6ff4471761255960cc18721cfe94ce Signed-off-by: Michel Thebeau --- stx-oidc-auth-helm/centos/stx-oidc-auth-helm.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stx-oidc-auth-helm/centos/stx-oidc-auth-helm.spec b/stx-oidc-auth-helm/centos/stx-oidc-auth-helm.spec index 7d677a0..319f51a 100644 --- a/stx-oidc-auth-helm/centos/stx-oidc-auth-helm.spec +++ b/stx-oidc-auth-helm/centos/stx-oidc-auth-helm.spec @@ -5,6 +5,9 @@ # Install location %global app_folder /usr/local/share/applications/helm +# backup location of dex overrides +%global override_backup /opt/oidc-auth-apps + # Build variables %global helm_folder /usr/lib/helm @@ -100,7 +103,9 @@ rm -fr %{app_staging} %install install -d -m 755 %{buildroot}/%{app_folder} install -p -D -m 755 %app_path %{buildroot}/%{app_folder} +install -d -m 750 %{buildroot}/%{override_backup} %files %defattr(-,root,root,-) %{app_folder}/%{app_tarball} +%dir %attr(750, postgres, postgres) %{override_backup}