Add comandlline flag '-q' for silent run of scripts 'dehydrated_cron.sh' and 'change_ssl_directives.sh'.
This commit is contained in:
parent
a6274a436e
commit
db826c6c63
@ -1571,6 +1571,20 @@ else
|
||||
verbose=false
|
||||
fi
|
||||
|
||||
|
||||
# -------------
|
||||
# - Read Commanline Arguments
|
||||
# -------------
|
||||
|
||||
# If option '-q' is present, be silent, even if running in a terminal
|
||||
#
|
||||
while getopts q opt ; do
|
||||
case \$opt in
|
||||
q) verbose=false ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
||||
# -Is systemd supported on this system?
|
||||
# -
|
||||
systemd_supported=false
|
||||
@ -3432,6 +3446,20 @@ else
|
||||
terminal=false
|
||||
fi
|
||||
|
||||
|
||||
# -------------
|
||||
# - Read Commanline Arguments
|
||||
# -------------
|
||||
|
||||
# If option '-q' is present, be silent, even if running in a terminal
|
||||
#
|
||||
while getopts q opt ; do
|
||||
case \$opt in
|
||||
q) terminal=false ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
||||
if \$terminal ; then
|
||||
clear
|
||||
echo ""
|
||||
|
Loading…
Reference in New Issue
Block a user