Replace with motd
This commit is contained in:
@@ -288,19 +288,13 @@ EOF
|
||||
generate-services() {
|
||||
service="/usr/lib/systemd/system/generate-motd.service"
|
||||
timer="/usr/lib/systemd/system/generate-motd.timer"
|
||||
cat <<- 'EOF' > "$service"
|
||||
cat <<- "EOF" > "$service"
|
||||
[Unit]
|
||||
Description=Generate MoTD
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment=DISPLAY=$_display
|
||||
Environment=XAUTHORITY=$XAUTHORITY
|
||||
ExecStart=/usr/bin/mediacenter$_mversion $*
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
KillSignal=SIGHUP
|
||||
TimeoutStopSec=30
|
||||
Exec=/usr/bin/bash $installdir/generate-motd.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
Reference in New Issue
Block a user