From 9bcd2b7b14f24623c093b2f8f1fbe792774dd1ef Mon Sep 17 00:00:00 2001 From: Mustafa Baser Date: Tue, 16 Jan 2024 12:34:24 +0300 Subject: [PATCH] fix: owner and mode of keys after re-generated --- tools/key_regeneration/key_regeneration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/key_regeneration/key_regeneration.py b/tools/key_regeneration/key_regeneration.py index f7716397..57113036 100644 --- a/tools/key_regeneration/key_regeneration.py +++ b/tools/key_regeneration/key_regeneration.py @@ -456,7 +456,8 @@ def validate_keys(self): run_command(['mv', '-f', self.tmp_keystore_fn, '/etc/certs']) run_command(['mv', '-f', self.keys_json_fn, self.data_dir]) run_command(['rm', '-r', '-f', self.temp_dir]) - + run_command(['chown', 'root:gluu', self.keystore_fn]) + run_command(['chmod', '0660', self.keystore_fn]) def update_spanner(self): print("Updating Spanner db")