makes individual app scripts

This commit is contained in:
2025-04-21 11:33:38 -07:00
parent 9cd14a76e7
commit 925e63d67f
4 changed files with 27 additions and 0 deletions

27
ubuntu/apps/resilio.sh Normal file
View File

@@ -0,0 +1,27 @@
cd ~/Downloads
rm resilio-sync_3.0.3.1065-1_amd64.deb
wget https://download-cdn.resilio.com/3.0.3.1065/debian/amd64/0/resilio-sync_3.0.3.1065-1_amd64.deb
sudo dpkg -i resilio-sync_3.0.3.1065-1_amd64.deb
sudo systemctl disable resilio-sync
sudo systemctl stop resilio-sync
echo "[Unit]
Description=Resilio Sync service
Documentation=https://help.getsync.com/
After=network.target network-online.target
[Service]
Type=forking
Restart=on-failure
PIDFile=%h/.config/resilio-sync/sync.pid
ExecStart=/usr/bin/rslsync --config %h/.config/resilio-sync/config.json
ExecStartPre=/etc/resilio-sync/init_user_config.sh
ExecStartPost=/bin/sleep 1
[Install]
WantedBy=default.target" | sudo tee /usr/lib/systemd/user/resilio-sync.service >/dev/null
systemctl --user enable resilio-sync
systemctl --user start resilio-sync
#uninstall: sudo apt-get purge resilio-sync