mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-09-20 18:17:15 +00:00
Update tar create to run as super user.
Address issue #47 with Redis server installs.
This commit is contained in:
parent
b0da983722
commit
258757ba5a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue