From f7f0dc4bd53860fa87e031194c37031bc7d7667f Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 22 Aug 2017 09:19:35 -0500 Subject: [PATCH] sync-portage: Set PATH When run by fcron from the *systab* table, the PATH environment variable does not include the "sbin" locations. Since `emaint` is located in `/usr/sbin`, it is not found. Thus, the PATH needs to be adjusted. --- sync-portage.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sync-portage.sh b/sync-portage.sh index 8fd34d4..4216b98 100755 --- a/sync-portage.sh +++ b/sync-portage.sh @@ -1,5 +1,7 @@ #!/bin/sh +export PATH=/usr/sbin:/sbin:/usr/bin:/bin + REMOTE=${SYNC_REMOTE:-caithe.pyrocufflink.jazz::portage-squashfs/gentoo.sqxz} NO_EMAINT_SYNC=0 NO_LAYMAN_SYNC=0