Kaynağa Gözat

Fix static analysis failures

Bob Mottram 7 yıl önce
ebeveyn
işleme
c6a76d2393
1 değiştirilmiş dosya ile 16 ekleme ve 16 silme
  1. 16
    16
      src/freedombone-app-syncthing

+ 16
- 16
src/freedombone-app-syncthing Dosyayı Görüntüle

544
 
544
 
545
     # This probably does need to run as root so that it can access the Sync directories
545
     # This probably does need to run as root so that it can access the Sync directories
546
     # in each user's home directory
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
     systemctl enable syncthing
563
     systemctl enable syncthing
564
     systemctl daemon-reload
564
     systemctl daemon-reload
565
     systemctl start syncthing
565
     systemctl start syncthing