sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (6f5065699368219fe62b3b454773b6974818f25a)
- From: Pavel Vinogradov <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (6f5065699368219fe62b3b454773b6974818f25a)
- Date: Sun, 16 Jul 2023 19:09:17 +0000
GIT changes to master grimoire by Pavel Vinogradov <public AT sourcemage.org>:
rust-crates/greetd/BUILD | 7 +++++++
rust-crates/greetd/HISTORY | 6 ++++++
rust-crates/greetd/PRE_BUILD | 7 -------
3 files changed, 13 insertions(+), 7 deletions(-)
New commits:
commit 6f5065699368219fe62b3b454773b6974818f25a
Author: Pavel Vinogradov <public AT sourcemage.org>
Commit: Pavel Vinogradov <public AT sourcemage.org>
rust-crates/greetd: fixed greeter user setup
the previous approach didn't take into account the case where groups
file can be shadowed (/etc/gshadow)
diff --git a/rust-crates/greetd/BUILD b/rust-crates/greetd/BUILD
index 7a66cd7..cf8e20d 100755
--- a/rust-crates/greetd/BUILD
+++ b/rust-crates/greetd/BUILD
@@ -1,3 +1,10 @@
+create_group greeter &&
+create_account greeter &&
+if `! grep ^video:.*greeter /etc/group > /dev/null`;then
+ message "${MESSAGE_COLOR}adding user greeter to video
group${NORMAL_COLOR}" &&
+ usermod --append --groups video greeter
+fi &&
+
default_build &&
if is_depends_enabled $SPELL scdoc; then
scdoc < ./man/agreety-1.scd > ./agreety.1
diff --git a/rust-crates/greetd/HISTORY b/rust-crates/greetd/HISTORY
index 9a0378a..0cecbeb 100644
--- a/rust-crates/greetd/HISTORY
+++ b/rust-crates/greetd/HISTORY
@@ -1,3 +1,9 @@
+2023-07-16 Pavel Vinogradov <public AT sourcemage.org>
+ * BUILD: added code from PRE_BUILD regardding greeter user creation
and setup,
+ now use usermode instead of sed statement in case shadowed
/etc/gshadow is
+ used and needs to be kept in sync
+ * PRE_BUILD: removed
+
2023-07-15 Pavel Vinogradov <public AT sourcemage.org>
* pam.d/greetd: added pam.d configuration file (modified Arch Linux
version)
diff --git a/rust-crates/greetd/PRE_BUILD b/rust-crates/greetd/PRE_BUILD
deleted file mode 100755
index 85e9764..0000000
--- a/rust-crates/greetd/PRE_BUILD
+++ /dev/null
@@ -1,7 +0,0 @@
-create_group greeter &&
-create_account greeter &&
-if `! grep ^video:.*greeter /etc/group > /dev/null`;then
- message adding user greeter to video group
- sed -i '/video:/s/$/,greeter/' /etc/group
-fi &&
-default_pre_build
- [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (6f5065699368219fe62b3b454773b6974818f25a), Pavel Vinogradov, 07/16/2023
Archive powered by MHonArc 2.6.24.