diff --git a/roles/base/templates/etc/cron.d/update-motd.j2 b/roles/base/templates/etc/cron.d/update-motd.j2 index 980eb21..a4d40d5 100644 --- a/roles/base/templates/etc/cron.d/update-motd.j2 +++ b/roles/base/templates/etc/cron.d/update-motd.j2 @@ -1,4 +1,5 @@ # cron file for motd # {{ ansible_managed }} -@reboot root /bin/sh /usr/local/sbin/update-motd.sh &>/dev/null +PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" +@reboot root /usr/local/sbin/update-motd.sh &>/dev/null diff --git a/roles/base/templates/usr/local/sbin/update-motd.sh.j2 b/roles/base/templates/usr/local/sbin/update-motd.sh.j2 index d75606d..040c255 100755 --- a/roles/base/templates/usr/local/sbin/update-motd.sh.j2 +++ b/roles/base/templates/usr/local/sbin/update-motd.sh.j2 @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/bash # Update dynamic MOTD file # {{ ansible_managed }}