Fix static analysis failures
This commit is contained in:
parent
a9153dbf15
commit
c6a76d2393
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue