mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 21:59:22 +02:00
utils/lib.sh: colorize messages
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
1e3d2f6800
commit
56a93ee770
3 changed files with 68 additions and 30 deletions
|
@ -445,9 +445,9 @@ deactivate_service() {
|
|||
uWSGI_restart
|
||||
}
|
||||
|
||||
interactive_shell() {
|
||||
echo "// exit with CTRL-D"
|
||||
sudo -H -u "${SERVICE_USER}" -i
|
||||
interactive_shell(){
|
||||
echo "// exit with ${_BCyan}CTRL-D${_creset}"
|
||||
sudo -H -u ${SERVICE_USER} -i
|
||||
}
|
||||
|
||||
git_diff() {
|
||||
|
@ -534,7 +534,9 @@ EOF
|
|||
echo
|
||||
systemctl --no-pager -l status uwsgi.service
|
||||
echo
|
||||
read -r -s -n1 -t 2 -p "// use CTRL-C to stop monitoring the log"
|
||||
# shellcheck disable=SC2059
|
||||
printf "// use ${_BCyan}CTRL-C${_creset} to stop monitoring the log"
|
||||
read -r -s -n1 -t 2
|
||||
echo
|
||||
while true; do
|
||||
trap break 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue