summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
346c8fb)
This is required for mysql(1) to find its user configuration files, for
example, and is not the case when run by a systemd(8) unit.
+# Make sure the environment is "sane", for example, mysql(1) depends on the
+# HOME environment variable to be set.
+[ -n "$HOME" ] || HOME=$( getent passwd "${LOGNAME:-root}" | cut -d: -f6 )
+export HOME
+
for cmd in mysql mysqldump; do
if ! which "$cmd" >/dev/null 2>&1; then
echo "$NAME: \"$cmd\" command not found!"
for cmd in mysql mysqldump; do
if ! which "$cmd" >/dev/null 2>&1; then
echo "$NAME: \"$cmd\" command not found!"