[packages/etckeeper] add script to be printed on system logins
glen
glen at pld-linux.org
Tue Oct 11 08:00:11 CEST 2016
commit a0b734583b02fcb0a54e2b9969138dee1218ba88
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Nov 30 09:08:38 2010 +0200
add script to be printed on system logins
motd.sh | 14 ++++++++++++++
1 file changed, 14 insertions(+)
---
diff --git a/motd.sh b/motd.sh
new file mode 100644
index 0000000..26eb3a5
--- /dev/null
+++ b/motd.sh
@@ -0,0 +1,14 @@
+if [ "$UID" = 0 -a -z "$GIT_AUTHOR_NAME" -a -z "$GIT_AUTHOR_EMAIL" ]; then
+ cat <<'EOF'
+Please commit your changes if you modify any files in /etc to git!
+But before that please setup env vars to identify your commits in your ~/.bash_profile:
+
+export GIT_AUTHOR_NAME='Elan Ruusamäe'
+export GIT_AUTHOR_EMAIL='glen at pld-linux.org'
+
+export GIT_COMMITTER_NAME=${GIT_COMMITER_NAME:-$GIT_AUTHOR_NAME}
+export GIT_COMMITTER_EMAIL=${GIT_COMMITER_EMAIL:-$GIT_AUTHOR_EMAIL}
+
+ -glen
+EOF
+fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/etckeeper.git/commitdiff/c9313d999dfbec8b0d083383dc60399e49cf5833
More information about the pld-cvs-commit
mailing list