[sysadmin-bin] Read the secret, turn exec bit on



commit 38b1e30fb14f5e376e2bb8fe8e8796066ca3e6c6
Author: Andrea Veri <averi redhat com>
Date:   Tue May 18 15:09:07 2021 +0200

    Read the secret, turn exec bit on

 gitlab/archive-group.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gitlab/archive-group.py b/gitlab/archive-group.py
old mode 100644
new mode 100755
index 954a94a..afd3222
--- a/gitlab/archive-group.py
+++ b/gitlab/archive-group.py
@@ -4,6 +4,7 @@ import gitlab
 
 GROUP_ID = 4001
 
+exec(open("/home/admin/secret/gitlab_rw").read())
 gl = gitlab.Gitlab('https://gitlab.gnome.org', GITLAB_PRIVATE_RW_TOKEN, api_version=4)
 
 g = gl.groups.get(GROUP_ID)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]