Procházet zdrojové kódy

allow one to use a ~/.ssh or something for the server in Lua hooks by setting HOME to the monotone-server directory

Ralf S. Engelschall před 18 roky
rodič
revize
33fe9bcb2c
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      monotone/rc.monotone

+ 3 - 1
monotone/rc.monotone

@@ -36,7 +36,9 @@
     rcService monotone enable yes || exit 0
     rcService monotone active yes && exit 0
     if rcVarIsYes monotone_daemon; then
-        ( nohup @l_prefix@/bin/mtn \
+        ( HOME="$monotone_daemon_etcdir/monotone-server"
+          export HOME
+          nohup @l_prefix@/bin/mtn \
             --confdir="$monotone_daemon_etcdir/monotone-server" \
             --keydir="$monotone_daemon_etcdir//monotone-server/keys" \
             --log="$monotone_daemon_logfile" \