Ver código fonte

Fix static analysis failures

Bob Mottram 7 anos atrás
pai
commit
c6a76d2393
1 arquivos alterados com 16 adições e 16 exclusões
  1. 16
    16
      src/freedombone-app-syncthing

+ 16
- 16
src/freedombone-app-syncthing Ver arquivo

@@ -544,22 +544,22 @@ function install_syncthing {
544 544
 
545 545
     # This probably does need to run as root so that it can access the Sync directories
546 546
     # in each user's home directory
547
-    echo '[Unit]' > /etc/systemd/system/syncthing.service
548
-    echo 'Description=Syncthing - Open Source Continuous File Synchronization' >> /etc/systemd/system/syncthing.service
549
-    echo 'Documentation=man:syncthing(1)' >> /etc/systemd/system/syncthing.service
550
-    echo 'After=network.target' >> /etc/systemd/system/syncthing.service
551
-    echo 'Wants=syncthing-inotify@.service' >> /etc/systemd/system/syncthing.service
552
-    echo '' >> /etc/systemd/system/syncthing.service
553
-    echo '[Service]' >> /etc/systemd/system/syncthing.service
554
-    echo 'User=root' >> /etc/systemd/system/syncthing.service
555
-    echo "Environment='all_proxy=socks5://localhost:9050'" >> /etc/systemd/system/syncthing.service
556
-    echo 'ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0' >> /etc/systemd/system/syncthing.service
557
-    echo 'Restart=on-failure' >> /etc/systemd/system/syncthing.service
558
-    echo 'SuccessExitStatus=3 4' >> /etc/systemd/system/syncthing.service
559
-    echo 'RestartForceExitStatus=3 4' >> /etc/systemd/system/syncthing.service
560
-    echo '' >> /etc/systemd/system/syncthing.service
561
-    echo '[Install]' >> /etc/systemd/system/syncthing.service
562
-    echo 'WantedBy=multi-user.target' >> /etc/systemd/system/syncthing.service
547
+    { echo '[Unit]';
548
+      echo 'Description=Syncthing - Open Source Continuous File Synchronization';
549
+      echo 'Documentation=man:syncthing(1)';
550
+      echo 'After=network.target';
551
+      echo 'Wants=syncthing-inotify@.service';
552
+      echo '';
553
+      echo '[Service]';
554
+      echo 'User=root';
555
+      echo "Environment='all_proxy=socks5://localhost:9050'";
556
+      echo 'ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0';
557
+      echo 'Restart=on-failure';
558
+      echo 'SuccessExitStatus=3 4';
559
+      echo 'RestartForceExitStatus=3 4';
560
+      echo '';
561
+      echo '[Install]';
562
+      echo 'WantedBy=multi-user.target'; } > /etc/systemd/system/syncthing.service
563 563
     systemctl enable syncthing
564 564
     systemctl daemon-reload
565 565
     systemctl start syncthing