Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/comms/direwolf/files/patch-scripts_dw-start.sh
27579 views
1
--- scripts/dw-start.sh.orig 2022-01-28 14:55:02 UTC
2
+++ scripts/dw-start.sh
3
@@ -68,9 +68,8 @@ DWCMD="$DIREWOLF -a 100"
4
5
6
#Where will logs go - needs to be writable by non-root users
7
-LOGFILE=/var/tmp/dw-start.log
8
+LOGFILE=/var/log/dw-start.log
9
10
-
11
#-------------------------------------
12
# Main functions of the script
13
#-------------------------------------
14
@@ -157,7 +157,7 @@ function GUI {
15
# When running from cron, we have a very minimal environment
16
# including PATH=/usr/bin:/bin.
17
#
18
-export PATH=/usr/local/bin:$PATH
19
+export PATH=%%PREFIX%%/bin:$PATH
20
21
#Log the start of the script run and re-run
22
date >> $LOGFILE
23
24