diff --git a/modules/11-syncthing.sh b/modules/11-syncthing.sh new file mode 100644 index 0000000..0296937 --- /dev/null +++ b/modules/11-syncthing.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +ensure_package_is_installed syncthing \ + && ensure_user_folder_present ~/.config/systemd/user \ + && synchronize_user_folder ./sources/syncthing/syncthing.service ~/.config/systemd/user \ + && ensure_user_service_active syncthing diff --git a/sources/syncthing/syncthing.service b/sources/syncthing/syncthing.service new file mode 100644 index 0000000..b7de122 --- /dev/null +++ b/sources/syncthing/syncthing.service @@ -0,0 +1,9 @@ +[Unit] +Name=Syncthing +After=network.target + +[Service] +ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --no-upgrade + +[Install] +WantedBy=default.target