Skip to content

Commit

Permalink
change generated config file name
Browse files Browse the repository at this point in the history
  • Loading branch information
gnmahanth committed Feb 20, 2020
1 parent f937dc2 commit b66fbd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ mv config.yaml.sample $AGENTDIR/config.yaml
cat > /etc/systemd/system/sfagent-config.service <<EOF
[Unit]
Description=snappyflow apm service
ConditionPathExists=!$AGENTDIR/config.yaml.gen
ConditionPathExists=$AGENTDIR/generated-config.yaml
After=network.target
[Service]
Expand All @@ -68,7 +68,7 @@ Type=oneshot
WorkingDirectory=$AGENTDIR
ExecStartPre=/bin/mkdir -p /var/log/sfagent
ExecStartPre=/bin/chmod 755 /var/log/sfagent
ExecStart=$AGENTDIR/sfagent -generate-config -file-name $AGENTDIR/config.yaml.gen
ExecStart=$AGENTDIR/sfagent -generate-config -file-name $AGENTDIR/generated-config.yaml
StandardOutput=syslog
StandardError=syslog
Expand Down

0 comments on commit b66fbd0

Please sign in to comment.