lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 57153e3: Allow author to run a script after b


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 57153e3: Allow author to run a script after becoming su
Date: Sat, 23 May 2020 18:59:35 -0400 (EDT)

branch: master
commit 57153e34e31dbe5b2373abb0cde9ebce275bb273
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Allow author to run a script after becoming su
---
 lmi_setup_02c.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lmi_setup_02c.sh b/lmi_setup_02c.sh
index cc37a4a..924ad0c 100755
--- a/lmi_setup_02c.sh
+++ b/lmi_setup_02c.sh
@@ -38,7 +38,7 @@ assert_not_chrooted
 # support the centos chroot itself, but also mounts created to
 # support a debian chroot within the centos chroot.
 
-if [ "greg" != "$(id -un)" ]; then
+if [ "greg" != "$(logname)" ]; then
    echo "This script would eradicate all your centos chroots--beware."
    exit 1
 fi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]