From da90c98115734dccbfea824dcbfc973898e2f466 Mon Sep 17 00:00:00 2001 From: Lorenzo Castelli Date: Tue, 23 Oct 2018 13:07:04 -0700 Subject: Adds a Pacman package definition for google-compute-engine. This includes daemons and oslogin split packages, and tracks the latest released version. --- google_oslogin_control.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 google_oslogin_control.patch (limited to 'google_oslogin_control.patch') diff --git a/google_oslogin_control.patch b/google_oslogin_control.patch new file mode 100644 index 0000000..5eb0cf0 --- /dev/null +++ b/google_oslogin_control.patch @@ -0,0 +1,17 @@ +diff --git a/google_compute_engine_oslogin/bin/google_oslogin_control b/google_compute_engine_oslogin/bin/google_oslogin_control +index 5a1ee99..47f953e 100755 +--- a/google_compute_engine_oslogin/bin/google_oslogin_control ++++ b/google_compute_engine_oslogin/bin/google_oslogin_control +@@ -15,7 +15,11 @@ + + script_name=$(basename "$0") + nss_config="/etc/nsswitch.conf" +-pam_config="/etc/pam.d/sshd" ++if grep -q -s "ID=arch" /etc/os-release; then ++ pam_config="/etc/pam.d/system-login" ++else ++ pam_config="/etc/pam.d/sshd" ++fi + sshd_config="/etc/ssh/sshd_config" + el_release_file="/etc/redhat-release" + sudoers_dir="/var/google-sudoers.d" -- cgit v1.3