From c6a76d2393134fe666d9cd94eb843dbebe6f1b04 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 2 Mar 2018 20:19:43 +0000 Subject: [PATCH] Fix static analysis failures --- src/freedombone-app-syncthing | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/freedombone-app-syncthing b/src/freedombone-app-syncthing index 46db9d9c..479671e4 100755 --- a/src/freedombone-app-syncthing +++ b/src/freedombone-app-syncthing @@ -544,22 +544,22 @@ function install_syncthing { # This probably does need to run as root so that it can access the Sync directories # in each user's home directory - echo '[Unit]' > /etc/systemd/system/syncthing.service - echo 'Description=Syncthing - Open Source Continuous File Synchronization' >> /etc/systemd/system/syncthing.service - echo 'Documentation=man:syncthing(1)' >> /etc/systemd/system/syncthing.service - echo 'After=network.target' >> /etc/systemd/system/syncthing.service - echo 'Wants=syncthing-inotify@.service' >> /etc/systemd/system/syncthing.service - echo '' >> /etc/systemd/system/syncthing.service - echo '[Service]' >> /etc/systemd/system/syncthing.service - echo 'User=root' >> /etc/systemd/system/syncthing.service - echo "Environment='all_proxy=socks5://localhost:9050'" >> /etc/systemd/system/syncthing.service - echo 'ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0' >> /etc/systemd/system/syncthing.service - echo 'Restart=on-failure' >> /etc/systemd/system/syncthing.service - echo 'SuccessExitStatus=3 4' >> /etc/systemd/system/syncthing.service - echo 'RestartForceExitStatus=3 4' >> /etc/systemd/system/syncthing.service - echo '' >> /etc/systemd/system/syncthing.service - echo '[Install]' >> /etc/systemd/system/syncthing.service - echo 'WantedBy=multi-user.target' >> /etc/systemd/system/syncthing.service + { echo '[Unit]'; + echo 'Description=Syncthing - Open Source Continuous File Synchronization'; + echo 'Documentation=man:syncthing(1)'; + echo 'After=network.target'; + echo 'Wants=syncthing-inotify@.service'; + echo ''; + echo '[Service]'; + echo 'User=root'; + echo "Environment='all_proxy=socks5://localhost:9050'"; + echo 'ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0'; + echo 'Restart=on-failure'; + echo 'SuccessExitStatus=3 4'; + echo 'RestartForceExitStatus=3 4'; + echo ''; + echo '[Install]'; + echo 'WantedBy=multi-user.target'; } > /etc/systemd/system/syncthing.service systemctl enable syncthing systemctl daemon-reload systemctl start syncthing