From b58d6b388ba6ea82ff41702cbcdfe776d82215e1 Mon Sep 17 00:00:00 2001 From: livejq Date: Wed, 23 Mar 2022 22:02:57 +0800 Subject: [PATCH] fix auth with smokeping's data directory --- AutoPing.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AutoPing.sh b/AutoPing.sh index d641e66..63042d1 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.5${PLAIN}${YELLOW} (20 Mar. 2022) ${PLAIN}" + echo -e "${YELLOW} Version: ${PLAIN}${GREEN}1.0.6${PLAIN}${YELLOW} (23 Mar. 2022) ${PLAIN}" echo -e "${YELLOW} Copyright (C) 2021 liveJQ cloud@livejq.fun ${PLAIN}" echo "" read -rp "请输入数字选择:" num @@ -158,7 +158,6 @@ configureUb() { #TCPPing wget -O /usr/bin/tcpping http://www.vdberg.org/~richard/tcpping chmod 755 /usr/bin/tcpping - chmod 777 -R /var/lib/smokeping/ #ufw ufw allow 22/tcp && ufw allow ${port1:-20000}/tcp ufw enable && systemctl enable ufw @@ -168,6 +167,7 @@ configureUb() { #test smokeping --debug || error=1 [[ $error -eq 1 ]] && echo -e "${RED}测试运行失败${PLAIN}" && exit 1 + chmod 777 -R /var/lib/smokeping/ systemctl start apache2 smokeping || error=1 [[ $error -eq 1 ]] && echo -e "${RED}启动失败${PLAIN}" && exit 1 echo "" @@ -223,7 +223,6 @@ configureCe() { #TCPPing wget -O /usr/bin/tcpping http://www.vdberg.org/~richard/tcpping chmod 755 /usr/bin/tcpping - chmod 777 -R /var/lib/smokeping/ #firewalld systemctl restart firewalld && systemctl enable firewalld firewall-cmd --zone=public --add-port=${port1:-20000}/tcp --permanent && firewall-cmd --reload @@ -232,6 +231,7 @@ configureCe() { #test smokeping --debug || error=1 [[ $error -eq 1 ]] && echo -e "${RED}测试运行失败${PLAIN}" && exit 1 + chmod 777 -R /var/lib/smokeping/ systemctl start httpd smokeping || error=1 [[ $error -eq 1 ]] && echo -e "${RED}启动失败${PLAIN}" && exit 1 echo ""