]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- add option --no-create-home to useradd to avoid warning 839/head
authorArvin Schnell <aschnell@suse.de>
Tue, 19 Sep 2023 08:20:52 +0000 (10:20 +0200)
committerArvin Schnell <aschnell@suse.de>
Tue, 19 Sep 2023 08:23:29 +0000 (10:23 +0200)
scripts/pam_snapper_useradd.sh
scripts/pam_snapper_userdel.sh

index bc9d82e1f4bbfa3959a25ec3c8ed55ffb44c5ead..fb04c8d8162743f4f501c1871b4040bacededfa6 100755 (executable)
@@ -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"
index 41bdbfbda23edb296e3eb7b73eac63a956ebeb84..9ee05619562d26210a18eb77b98cb3762c015d68 100755 (executable)
@@ -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"