Disable motd scripts (#177)

* Disable motd scripts

* Fix typo
This commit is contained in:
Neal Conner 2018-10-01 11:35:32 -04:00 committed by Josh Harvey
parent ef84e2a2ed
commit 256538a0e2

View file

@ -69,6 +69,15 @@ BACKUP_CRON="@daily $BACKUP_CMD > /dev/null"
( (crontab -l 2>/dev/null || echo -n "") | grep -v '@daily.*lamassu-backup-pg'; echo $BACKUP_CRON ) | crontab - >> $LOG_FILE 2>&1
$BACKUP_CMD >> $LOG_FILE 2>&1
decho "updating motd scripts"
set +e
chmod -x /etc/update-motd.d/*-release-upgrade
chmod -x /etc/update-motd.d/*-updates-available
chmod -x /etc/update-motd.d/*-reboot-required
chmod -x /etc/update-motd.d/*-help-text
chmod -x /etc/update-motd.d/*-cloudguest
set -e
# reset terminal to link new executables
hash -r