1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/syncthing_ynh.git synced 2024-09-03 20:26:23 +02:00

debug manifest an install

This commit is contained in:
Biette Lahire 2016-06-04 14:08:12 +02:00
parent e9c7c6dca4
commit 616af3df33
2 changed files with 3 additions and 1 deletions

View file

@ -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)"

View file

@ -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