maybe chgrp 'openldap' 'ldap/slapd.d/cn=config/olcDatabase={1}mdb.ldif'
maybe chmod 0600 'ldap/slapd.d/cn=config/olcDatabase={1}mdb.ldif'
maybe chmod 0755 'letsencrypt'
-maybe chmod 0600 'letsencrypt/.certbot.lock'
maybe chmod 0644 'letsencrypt/.updated-options-ssl-apache-conf-digest.txt'
maybe chmod 0700 'letsencrypt/accounts'
maybe chmod 0700 'letsencrypt/accounts/acme-staging-v02.api.letsencrypt.org'
maybe chmod 0600 'ulogd.conf'
maybe chmod 0755 'update-motd.d'
maybe chmod 0755 'update-motd.d/10-uname'
+maybe chmod 0755 'update-motd.d/20-release'
+maybe chmod 0755 'update-motd.d/40-tail'
+maybe chmod 0755 'update-motd.d/50-fortune'
+maybe chmod 0755 'update-motd.d/60-ddate'
+maybe chmod 0755 'update-motd.d/70-need-reboot'
maybe chmod 0644 'updatedb.conf'
maybe chmod 0755 'vim'
maybe chmod 0644 'vim/vimrc'
# Eine nette Begrüßung ...
-1,11,21,31,41,51 * * * * root test -x /root/bin/generate-motd.sh && /root/bin/generate-motd.sh >/dev/null
-@reboot root test -x /root/bin/generate-motd.sh && /root/bin/generate-motd.sh >/dev/null
+# 1,11,21,31,41,51 * * * * root test -x /root/bin/generate-motd.sh && /root/bin/generate-motd.sh >/dev/null
+# @reboot root test -x /root/bin/generate-motd.sh && /root/bin/generate-motd.sh >/dev/null
--- /dev/null
+#!/bin/bash
+
+if [[ -f /etc/gentoo-release ]] ; then
+ cat /etc/gentoo-release
+elif [[ -x /usr/bin/lsb_release ]] ; then
+ /usr/bin/lsb_release -d | sed -e 's/^[ ]*Description[ ]*:[ ]*//'
+fi
+
+# vim: ts=4 expandtab
--- /dev/null
+#!/bin/bash
+
+if [[ -f /etc/motd.tail ]] ; then
+ cat /etc/motd.tail
+fi
+
+# vim: ts=4 expandtab
--- /dev/null
+#!/bin/bash
+
+export LC_ALL=de_DE.utf8
+
+if [[ -x /usr/bin/fortune ]] ; then
+ echo
+ /usr/bin/fortune de
+elif [[ -x /usr/games/fortune ]] ; then
+ echo >>"${MOTD}"
+ /usr/games/fortune de
+fi
+
+# vim: ts=4 expandtab
--- /dev/null
+#!/bin/bash
+
+if type -p ddate >/dev/null; then
+ ddate
+fi
+
+echo
+
+# vim: ts=4 expandtab
--- /dev/null
+#!/bin/bash
+
+CYAN="\033[38;5;14m"
+NORMAL="\033[39m"
+
+if [[ -f /run/reboot-required ]] ; then
+ echo
+ echo -e "❗❗😯💣 The host needs to be rebootet! 💣😯❗❗"
+ echo
+ if [[ -f /run/reboot-required.pkgs ]] ; then
+ echo "The following packages were changed:"
+ for p in $( cat /run/reboot-required.pkgs ) ; do
+ echo -e " * ${CYAN}${p}${NORMAL}"
+ done
+ echo
+ fi
+fi