File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 45
45
fi
46
46
47
47
if [ -d /etc/update-motd.d ]; then
48
- TMPFILE=$( mktemp -p /var/tmp motd.XXXXX)
48
+ TMPFILE=$( mktemp --tmpdir motd.XXXXX)
49
49
if [ -f /etc/motd.head ]; then
50
50
cat /etc/motd.head >> $TMPFILE
51
51
fi
@@ -56,7 +56,7 @@ if [ -d /etc/update-motd.d ]; then
56
56
[[ $part =~ \. rpm* ]] && continue
57
57
# Run only if it's a regular file and executable
58
58
if [ -f $part ] && [ -x $part ]; then
59
- TMPPART=$( mktemp motd.partXXXXX)
59
+ TMPPART=$( mktemp --tmpdir motd.partXXXXX)
60
60
if ($part > $TMPPART ); then
61
61
cat $TMPPART >> $TMPFILE
62
62
fi
Original file line number Diff line number Diff line change 1
1
Name: update-motd
2
- Version: 1.0
2
+ Version: 1.0.1
3
3
Release: 1%{?dist }
4
4
License: ASL 2.0
5
5
Summary: Framework for dynamically generating MOTD
You can’t perform that action at this time.
0 commit comments