From 38d10c3474a9334ecc2a3ecfb274def2fd863674 Mon Sep 17 00:00:00 2001 From: livejq Date: Fri, 15 Apr 2022 11:55:23 +0800 Subject: [PATCH] adjust the page refresh interval to 120s. --- AutoPing.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AutoPing.sh b/AutoPing.sh index 5c0e46e..2003c16 100644 --- a/AutoPing.sh +++ b/AutoPing.sh @@ -22,7 +22,7 @@ selectAction() { echo -e "${GREEN} \ 直接回车一起安装 / ${PLAIN}" echo -e "${GREEN} ========================================================= ${PLAIN}" echo -e "${YELLOW} System requirements: ${PLAIN}${RED}CentOS 7${PLAIN}${YELLOW} or ${PLAIN}${RED}Ubuntu 20.04${PLAIN}${YELLOW}. ${PLAIN}" - echo -e "${YELLOW} Version: ${PLAIN}${GREEN}1.0.9${PLAIN}${YELLOW} (29 Mar. 2022) ${PLAIN}" + echo -e "${YELLOW} Version: ${PLAIN}${GREEN}1.1.0${PLAIN}${YELLOW} (15 Apr. 2022) ${PLAIN}" echo -e "${YELLOW} Copyright (C) 2021 liveJQ cloud@livejq.fun ${PLAIN}" echo "" read -rp "请输入数字选择:" num @@ -155,6 +155,7 @@ configureUb() { #apache2 sed -i 's/80/'${port1:-20000}'/g' /etc/apache2/ports.conf sed -i 's/DirectoryIndex/DirectoryIndex smokeping.cgi/g' /etc/apache2/mods-available/dir.conf + sed -i 's/<##step##>/120/g' /etc/smokeping/basepage.html systemctl enable apache2 smokeping #TCPPing wget -O /usr/bin/tcpping http://www.vdberg.org/~richard/tcpping @@ -215,6 +216,7 @@ configureCe() { #httpd sed -i 's/Require local/Require all granted/g;' /etc/httpd/conf.d/smokeping.conf sed -i 's/Listen 80/Listen '${port1:-20000}'/g' /etc/httpd/conf/httpd.conf + sed -i 's/<##step##>/120/g' /etc/smokeping/basepage.html systemctl enable httpd smokeping #TCPPing wget -O /usr/bin/tcpping http://www.vdberg.org/~richard/tcpping