Skip to content

Commit 5a987df

Browse files
committed
Address PATH requirements for Dateutils in crontab & launchd plist. GitHub Issue #22
1 parent 28a1084 commit 5a987df

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

INSTALLING.md

+5
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ Installation is currently a manual process, but fairly straightforward:
5050
And pasting in the following:
5151

5252
0 0 * * * /usr/local/bin/43f run
53+
54+
Make sure that the `PATH` environment variable is also set in the crontab
55+
and includes the path to Dateutils (usually `/usr/local/bin`), e.g.:
56+
57+
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin
5358

5459
8. That should do it. You should now be able to start storing files and/or
5560
directories in the daily and/or monthly directories within your `43f`

Makefile.in

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ install: 43f lib43f 43f.conf.default $(INSTALL_DEPS)
2222
@echo "For new installations, please copy $(PREFIX)/etc/43f.conf.default to $(PREFIX)/etc/43f.conf and edit as necessary"
2323
@echo
2424
@echo "Next, run '43f init /path/to/43f/repository' to initialize repository"
25+
@echo
26+
@echo "Finally, add '$(PREFIX)/43f run' to the appropriate crontab, see INSTALLING.md"
2527

2628
uninstall_launchd:
2729
launchctl unload /Library/LaunchDaemons/com.makkintosshu.43f.plist

com.makkintosshu.43f.plist.default

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
<key>Minute</key>
1717
<integer>0</integer>
1818
</dict>
19+
<key>EnvironmentVariables</key>
20+
<dict>
21+
<key>PATH</key>
22+
<string>/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin</string>
23+
</dict>
1924
<key>AbandonProcessGroup</key>
2025
<true/>
2126
</dict>

0 commit comments

Comments
 (0)