summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhangshuai <[email protected]>2022-08-03 17:52:41 +0800
committerzhangshuai <[email protected]>2022-08-03 17:52:41 +0800
commite411eabc2960bba5b9b9a5f4b8720752f5adfe09 (patch)
treee143a064f65032dfc721955cf59c374e6bd2cf9b
parent00739eb67f0c31b6ecb04ad9c947474698682a8c (diff)
fix: NEZ-2098 修复nz-agent afterinstall.sh $OPTION缺失问题rel-22.07.03
-rw-r--r--tools/afterinstall.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/afterinstall.sh b/tools/afterinstall.sh
index cf45b8e..066e946 100644
--- a/tools/afterinstall.sh
+++ b/tools/afterinstall.sh
@@ -17,7 +17,7 @@ EOF
}
fn_init_prometheus_service(){
- cat > /usr/lib/systemd/system/prometheus.service <<EOF
+ cat > /usr/lib/systemd/system/prometheus.service <<"EOF"
[Unit]
Description=prometheus
After=network.target
@@ -34,7 +34,7 @@ EOF
}
fn_init_snmp_exporter_service(){
- cat > /usr/lib/systemd/system/snmp-exporter.service <<EOF
+ cat > /usr/lib/systemd/system/snmp-exporter.service <<"EOF"
[Unit]
Description=snmp-exporter
After=network.target
@@ -50,7 +50,7 @@ EOF
}
fn_init_blackbox_exporter_service(){
- cat > /usr/lib/systemd/system/blackbox-exporter.service <<EOF
+ cat > /usr/lib/systemd/system/blackbox-exporter.service <<"EOF"
[Unit]
Description=blackbox_exporter
After=network.target
@@ -67,7 +67,7 @@ EOF
}
fn_init_cortex_service(){
- cat > /usr/lib/systemd/system/cortex.service <<EOF
+ cat > /usr/lib/systemd/system/cortex.service <<"EOF"
[Unit]
Description=cortex
After=network.target