Commit ad948e90 authored by 段孔乐's avatar 段孔乐

modify install script

parent 379c4690
...@@ -18,4 +18,4 @@ tar -zxf $name ...@@ -18,4 +18,4 @@ tar -zxf $name
rm -rf $name rm -rf $name
cd $folder || exit 1 cd $folder || exit 1
source ./install.sh . ./install.sh
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# scan_dir="/data/backend-micro/**/*.log" # scan_dir="/data/backend-micro/**/*.log"
serviceName="filebeat" serviceName="filebeat"
source ./util.sh . ./util.sh
checkEnv checkEnv
initFilebeatService initFilebeatService
initConf initConf
......
#!/bin/bash #!/bin/bash
if [ "$(pwd | grep -c 'filebeat')" -lt 0 ]; then echo "script location is incorrect, run me in filebeat installation directory"; exit 1; fi if [ "$(pwd | grep -c 'filebeat')" -lt 0 ]; then echo "script location is incorrect, run me in filebeat installation directory"; exit 1; fi
source ./util.sh . ./util.sh
sudo systemctl disable filebeat 2>/dev/null sudo systemctl disable filebeat 2>/dev/null
sudo systemctl stop filebeat 2>/dev/null sudo systemctl stop filebeat 2>/dev/null
rm -rf /etc/systemd/system/filebeat.serivce rm -rf /etc/systemd/system/filebeat.serivce
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment