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:
parent
e9c7c6dca4
commit
616af3df33
2 changed files with 3 additions and 1 deletions
|
@ -32,6 +32,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "user",
|
"name": "user",
|
||||||
|
"type": "user",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Choose the user for Syncthing (must be an existing yunohost user)",
|
"en": "Choose the user for Syncthing (must be an existing yunohost user)",
|
||||||
"fr": "Choisissez l'utilisateur de Syncthing (doit être un utilisateur yunohost existant)"
|
"fr": "Choisissez l'utilisateur de Syncthing (doit être un utilisateur yunohost existant)"
|
||||||
|
|
|
@ -67,7 +67,7 @@ sudo apt-get update -qq
|
||||||
sudo apt-get install syncthing -y --force-yes
|
sudo apt-get install syncthing -y --force-yes
|
||||||
|
|
||||||
# Install and monitor service
|
# 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 daemon-reload
|
||||||
sudo systemctl enable syncthing@$SYNCUSER.service
|
sudo systemctl enable syncthing@$SYNCUSER.service
|
||||||
#~ sudo yunohost service add -l /var/log/syncthing.log syncthing
|
#~ 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
|
# Remove acces to all users
|
||||||
sudo yunohost app removeaccess syncthing
|
sudo yunohost app removeaccess syncthing
|
||||||
|
sudo yunohost app addaccess syncthing -u $user
|
||||||
|
|
||||||
# Reload nginx and update ssowatch
|
# Reload nginx and update ssowatch
|
||||||
sudo systemctl reload nginx.service
|
sudo systemctl reload nginx.service
|
||||||
|
|
Loading…
Add table
Reference in a new issue