From: Arvin Schnell Date: Tue, 19 Sep 2023 08:20:52 +0000 (+0200) Subject: - add option --no-create-home to useradd to avoid warning X-Git-Tag: v0.10.7~13^2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=9b97a8be2373325f925083157a677ef0a8a42a2d;p=thirdparty%2Fsnapper.git - add option --no-create-home to useradd to avoid warning --- diff --git a/scripts/pam_snapper_useradd.sh b/scripts/pam_snapper_useradd.sh index bc9d82e1..fb04c8d8 100755 --- a/scripts/pam_snapper_useradd.sh +++ b/scripts/pam_snapper_useradd.sh @@ -13,8 +13,7 @@ CMD_BTRFS="/sbin/btrfs" CMD_SNAPPER="/usr/bin/snapper" CMD_EGREP="grep -E" CMD_PAM_CONFIG="/usr/sbin/pam-config" -CMD_USERADD="useradd" -CMD_USERDEL="userdel -r" +CMD_USERADD="useradd --no-create-home" CMD_CHOWN="chown" CMD_CHMOD="chmod" CMD_CPA="cp -a" diff --git a/scripts/pam_snapper_userdel.sh b/scripts/pam_snapper_userdel.sh index 41bdbfbd..9ee05619 100755 --- a/scripts/pam_snapper_userdel.sh +++ b/scripts/pam_snapper_userdel.sh @@ -13,8 +13,7 @@ CMD_BTRFS="/sbin/btrfs" CMD_SNAPPER="/usr/bin/snapper" CMD_EGREP="grep -E" CMD_PAM_CONFIG="/usr/sbin/pam-config" -CMD_USERADD="useradd -m" -CMD_USERDEL="userdel -r" +CMD_USERDEL="userdel --remove" CMD_CHOWN="chown" # SNAPPERCFGDIR="/etc/snapper/configs"