From 1ac4a421cb463c4b02da68f19c1ea877fec6e48f Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 8 Nov 2021 20:13:25 +0100 Subject: [PATCH] check removal and adding sudo for systemctl --- installSyncthing.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/installSyncthing.sh b/installSyncthing.sh index c3b08fb..902644b 100644 --- a/installSyncthing.sh +++ b/installSyncthing.sh @@ -7,7 +7,5 @@ echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https:// sudo apt update sudo apt install syncthing -y # On le lance au démarrage -systemctl enable syncthing@$USER.service -systemctl start syncthing@$USER.service -# On check si le service est bien démarré -systemctl status syncthing@myuser.service +sudo systemctl enable syncthing@$USER.service +sudo systemctl start syncthing@$USER.service