summaryrefslogtreecommitdiffstats
path: root/remote/modules/dnbd3
diff options
context:
space:
mode:
authorSimon Rettberg2015-12-04 18:41:06 +0100
committerSimon Rettberg2015-12-04 18:41:06 +0100
commit2189358ee76b57102ad323b5b993e8b8b30254a6 (patch)
tree3ca709da17d314cf9e304058f898e880fc3fffb9 /remote/modules/dnbd3
parent[run-virt] adapted dnbd3-mount code for VMs to use dnbd3-fuse (diff)
downloadtm-scripts-2189358ee76b57102ad323b5b993e8b8b30254a6.tar.gz
tm-scripts-2189358ee76b57102ad323b5b993e8b8b30254a6.tar.xz
tm-scripts-2189358ee76b57102ad323b5b993e8b8b30254a6.zip
[run-virt] Minor cleanups in setup and error handling
Diffstat (limited to 'remote/modules/dnbd3')
-rw-r--r--remote/modules/dnbd3/data/opt/openslx/scripts/pam_script_auth.d/10-fuse7
1 files changed, 5 insertions, 2 deletions
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
+