From 616af3df33af8f6d742a3958e75c8793cf471f06 Mon Sep 17 00:00:00 2001 From: Biette Lahire Date: Sat, 4 Jun 2016 14:08:12 +0200 Subject: [PATCH] debug manifest an install --- manifest.json | 1 + scripts/install | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index d3b7f5f..166dcbd 100644 --- a/manifest.json +++ b/manifest.json @@ -32,6 +32,7 @@ }, { "name": "user", + "type": "user", "ask": { "en": "Choose the user for Syncthing (must be an existing yunohost user)", "fr": "Choisissez l'utilisateur de Syncthing (doit ĂȘtre un utilisateur yunohost existant)" diff --git a/scripts/install b/scripts/install index 17c7dcf..31bd48c 100644 --- a/scripts/install +++ b/scripts/install @@ -67,7 +67,7 @@ sudo apt-get update -qq sudo apt-get install syncthing -y --force-yes # Install and monitor service -sed -i '/^\[Service\]$/,/^\[/ s/^Restart=on-failure/Restart=always/' ~/syncthing.service +sed -i '/^\[Service\]$/,/^\[/ s/^Restart=on-failure/Restart=always/' /lib/systemd/system/syncthing@.service sudo systemctl daemon-reload sudo systemctl enable syncthing@$SYNCUSER.service #~ sudo yunohost service add -l /var/log/syncthing.log syncthing @@ -87,6 +87,7 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/syncthing.conf # Remove acces to all users sudo yunohost app removeaccess syncthing +sudo yunohost app addaccess syncthing -u $user # Reload nginx and update ssowatch sudo systemctl reload nginx.service