From 258757ba5ab5e15ad73279c21fc8d30f36332bb3 Mon Sep 17 00:00:00 2001 From: Andrew Walsh Date: Wed, 31 Aug 2022 19:23:44 -0700 Subject: [PATCH] Update tar create to run as super user. Address issue #47 with Redis server installs. --- install_and_cache_pkgs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_and_cache_pkgs.sh b/install_and_cache_pkgs.sh index 64e5a42..16bfe6c 100755 --- a/install_and_cache_pkgs.sh +++ b/install_and_cache_pkgs.sh @@ -75,7 +75,7 @@ for installed_package in ${installed_packages}; do while IFS= read -r f; do if test -f $f || test -L $f; then echo "${f:1}"; fi; #${f:1} removes the leading slash that Tar disallows done | - xargs tar -caf "${cache_filepath}" -C / + sudo xargs tar -caf "${cache_filepath}" -C / log " * Cached ${installed_package_name} to ${cache_filepath} (compressed size $(du -h "${cache_filepath}" | cut -f1))." fi