[sysadmin-bin] Add a special case for gitlab.gnome.org on create-auth
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Add a special case for gitlab.gnome.org on create-auth
- Date: Fri, 23 Jun 2017 10:09:47 +0000 (UTC)
commit 226d1bfffb1fb7c21bcfd2bc896a65ce10602df6
Author: Andrea Veri <averi redhat com>
Date: Fri Jun 23 12:09:38 2017 +0200
Add a special case for gitlab.gnome.org on create-auth
create-auth | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/create-auth b/create-auth
index 0ff4f40..6fb88a7 100755
--- a/create-auth
+++ b/create-auth
@@ -397,6 +397,13 @@ def create_directory_structure (user_data):
os.chown (user_dir_name, 0, 0)
shutil.copy2('/root/.ssh/authorized_keys', authorized_keys_file)
+ if socket.gethostname() in ('gitlab.gnome.org', 'gitlab-test.gnome.org'):
+ user_dir_name = users_directory_name + "/git"
+ authorized_keys_file = user_dir_name + "/authorized_keys"
+ os.mkdir (user_dir_name, 0700)
+ os.chown (user_dir_name, 993, 990)
+ os.symlink('/var/opt/gitlab/.ssh/authorized_keys', authorized_keys_file)
+
except Exception, e:
shutil.rmtree(base_directory_name)
raise
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]