From 4abac29b4184d2caf3970169e2f5ca6c968c0b50 Mon Sep 17 00:00:00 2001 From: layman Date: Thu, 26 Jan 2023 07:38:28 +0100 Subject: [PATCH] move LOCKFILE to local subdir as this one does not get synced --- gentooup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gentooup.sh b/gentooup.sh index 18352a5..4e571cc 100755 --- a/gentooup.sh +++ b/gentooup.sh @@ -1,6 +1,7 @@ #!/bin/bash -LOCKFILE=/usr/portage/gentooup.lock +LOCKFILE=/usr/portage/local/gentooup.lock + PORTAGE_OPTIONS=("--keep-going" "--autounmask-write" "--binpkg-respect-use=y" "--autounmask-continue") PORTAGE_UPGRADE_OPTIONS=("-vuNDk") @@ -90,6 +91,7 @@ myemerge() { } if [[ -z "$NO_LOCK" ]] ; then + mkdir -p $(dirname "$LOCKFILE") exec {FD_LOCK}<>"$LOCKFILE" echo "Try to acquire lock for $LOCKFILE" if ! flock -x -w 60 "$FD_LOCK" ; then