Improvements in .templates/bin scripts:
* obsolescent egrep calls have removed; * /usr/local/bin has been added to PATH for cron calls.
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
# Author: Kovács Zoltán <kovacs.zoltan@smartfront.hu>
|
||||
# Kovács Zoltán <kovacsz@marcusconsulting.hu>
|
||||
# License: GNU/GPL v3+ (https://www.gnu.org/licenses/gpl-3.0.en.html)
|
||||
# 2026-05-04 v1.2
|
||||
# fix: /usr/local/bin was missing from the PATH for cron calls.
|
||||
# 2026-05-01 v1.1
|
||||
# new: dnf support has been added for Oracle/RHEL compatibility.
|
||||
# mod: the egrep calls have been replaced by grep -E command
|
||||
@@ -66,8 +68,8 @@ if [ -n "$CRON" ]; then
|
||||
[[ -n "$includepath" ]] && PATH="$PATH:$includepath"
|
||||
unset includepath
|
||||
fi
|
||||
# We need the $HOME/bin as well.
|
||||
PATH="$HOME/bin:$PATH"
|
||||
# We need the $HOME/bin and /usr/local/bin paths as well.
|
||||
PATH="$HOME/bin:/usr/local/bin:$PATH"
|
||||
fi
|
||||
# We need also the sbin directories.
|
||||
if ! [[ "$PATH" =~ '/sbin:' ]]; then PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin"; fi
|
||||
|
||||
Reference in New Issue
Block a user