mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
Updated install.sh for better concatenate format.
This commit is contained in:
parent
a732d7265e
commit
6581a5a449
1 changed files with 11 additions and 6 deletions
17
install.sh
17
install.sh
|
@ -101,14 +101,21 @@ judgment_parameters() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cat_file_with_name() {
|
||||||
|
while [[ "$#" -gt '0' ]]; do
|
||||||
|
echo -e "${FontSkyBlue}# $1${FontSuffix}\n"
|
||||||
|
cat "$1"
|
||||||
|
echo ''
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
systemd_cat_config() {
|
systemd_cat_config() {
|
||||||
if systemd-analyze --help | grep -qw 'cat-config'; then
|
if systemd-analyze --help | grep -qw 'cat-config'; then
|
||||||
systemd-analyze --no-pager cat-config "$@"
|
systemd-analyze --no-pager cat-config "$@"
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
echo -e "${FontSkyBlue}~~~~~~~~~~~~~~~~"
|
cat_file_with_name "$@" "$1".d/*
|
||||||
cat "$@" "$1".d/*
|
|
||||||
echo -e "${FontSkyBlue}~~~~~~~~~~~~~~~~"
|
|
||||||
echo -e "${FontYellow}warning: The systemd version on the current operating system is too low."
|
echo -e "${FontYellow}warning: The systemd version on the current operating system is too low."
|
||||||
echo -e "${FontYellow}warning: Please consider to upgrade the systemd or the operating system.${FontSuffix}"
|
echo -e "${FontYellow}warning: Please consider to upgrade the systemd or the operating system.${FontSuffix}"
|
||||||
echo
|
echo
|
||||||
|
@ -281,9 +288,7 @@ EOF
|
||||||
|
|
||||||
echo -e "${FontGreen}note: The following are the current configuration for the nginx-ui."
|
echo -e "${FontGreen}note: The following are the current configuration for the nginx-ui."
|
||||||
echo -e "${FontGreen}note: Please change the information if needed.${FontSuffix}"
|
echo -e "${FontGreen}note: Please change the information if needed.${FontSuffix}"
|
||||||
echo -e "${FontSkyBlue}~~~~~~~~~~~~~~~~"
|
cat_file_with_name "$DataPath/app.ini"
|
||||||
cat "$DataPath/app.ini"
|
|
||||||
echo -e "${FontSkyBlue}~~~~~~~~~~~~~~~~${FontSuffix}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
start_nginx_ui() {
|
start_nginx_ui() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue