From 2189358ee76b57102ad323b5b993e8b8b30254a6 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 4 Dec 2015 18:41:06 +0100 Subject: [run-virt] Minor cleanups in setup and error handling --- .../dnbd3/data/opt/openslx/scripts/pam_script_auth.d/10-fuse | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'remote/modules/dnbd3/data/opt/openslx/scripts') diff --git a/remote/modules/dnbd3/data/opt/openslx/scripts/pam_script_auth.d/10-fuse b/remote/modules/dnbd3/data/opt/openslx/scripts/pam_script_auth.d/10-fuse index c11c7448..2ae0d203 100644 --- a/remote/modules/dnbd3/data/opt/openslx/scripts/pam_script_auth.d/10-fuse +++ b/remote/modules/dnbd3/data/opt/openslx/scripts/pam_script_auth.d/10-fuse @@ -1,3 +1,6 @@ -usermod -a -G fuse ${PAM_USER} + +usermod -a -G "fuse" "${PAM_USER}" ret=$? -[ $ret -ne 0 ] && slxlog "pam_auth_fuse" "Could not add $PAM_USER to group 'fuse'" +[ "$ret" -ne "0" ] && slxlog "pam-auth-fuse" "Could not add $PAM_USER to group 'fuse'" +true + -- cgit v1.2.3-55-g7522