From 774d468008d48abb1fe723ca3ec4f0e321c639db Mon Sep 17 00:00:00 2001 From: binhex Date: Fri, 15 Jun 2018 16:50:44 +0100 Subject: [PATCH] fix puid pgid var expansion --- build/root/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/root/install.sh b/build/root/install.sh index 8c42ab3..245185c 100644 --- a/build/root/install.sh +++ b/build/root/install.sh @@ -62,8 +62,8 @@ chmod -R 775 ${install_paths} cat < /tmp/permissions_heredoc # get previous puid/pgid (if first run then will be empty string) -previous_puid=$(cat "/tmp/puid" 2>/dev/null) -previous_pgid=$(cat "/tmp/pgid" 2>/dev/null) +previous_puid=\$(cat "/tmp/puid" 2>/dev/null || true) +previous_pgid=\$(cat "/tmp/pgid" 2>/dev/null || true) # if first run (no puid or pgid files in /tmp) or the PUID or PGID env vars are different # from the previous run then re-apply chown with current PUID and PGID values.