Explorar o código

Changed system conf file to use $USER

Jake Peterson %!s(int64=10) %!d(string=hai) anos
pai
achega
fe88781bc8
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      etc/linux-upstart/system/syncthing.conf

+ 3 - 3
etc/linux-upstart/system/syncthing.conf

@@ -4,9 +4,9 @@ start on (local-filesystems and net-device-up IFACE!=lo)
 stop on runlevel [!2345]
 
 env STNORESTART=yes
-env HOME=/home/jake
-setuid "jake"
-setgid "jake"
+env HOME=/home/$USER
+setuid "$USER"
+setgid "$USER"
 
 exec /usr/local/bin/syncthing