1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 02:47:56 +01:00

set permissions prior to copying

This commit is contained in:
Jason N. 2024-04-04 11:09:31 -04:00
parent 503da8cc8a
commit f8dbbca2d3
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ script.sh:
ostree --repo=\$${FLATPAK_SYSTEM_DIR}/repo rev-parse $(FLATPAK_REMOTE_NAME)/\$${i} > /flatpak_dir/repo/refs/heads/\$${i}
done
flatpak build-update-repo /flatpak_dir/repo
ostree refs --repo=/flatpak_dir/repo > /flatpak_dir/list.txt
ostree refs --repo=/flatpak_dir/repo | tee /flatpak_dir/list.txt
EOF
install-deps:

View file

@ -22,6 +22,7 @@ popd > /dev/null
if [[ -n "${FLATPAK_DIR}" ]]
then
pushd "${FLATPAK_DIR}" > /dev/null
chmod -R ugo=rX .
for file in $(find repo)
do
if [[ "${file}" == "repo/.lock" ]]
@ -29,7 +30,6 @@ then
continue
fi
echo "-map ${PWD}/${file} flatpak/${file}"
echo "-chmod 0444 flatpak/${file}"
done
popd > /dev/null
fi