mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
set permissions prior to copying
This commit is contained in:
parent
503da8cc8a
commit
f8dbbca2d3
2 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ script.sh:
|
||||||
ostree --repo=\$${FLATPAK_SYSTEM_DIR}/repo rev-parse $(FLATPAK_REMOTE_NAME)/\$${i} > /flatpak_dir/repo/refs/heads/\$${i}
|
ostree --repo=\$${FLATPAK_SYSTEM_DIR}/repo rev-parse $(FLATPAK_REMOTE_NAME)/\$${i} > /flatpak_dir/repo/refs/heads/\$${i}
|
||||||
done
|
done
|
||||||
flatpak build-update-repo /flatpak_dir/repo
|
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
|
EOF
|
||||||
|
|
||||||
install-deps:
|
install-deps:
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ popd > /dev/null
|
||||||
if [[ -n "${FLATPAK_DIR}" ]]
|
if [[ -n "${FLATPAK_DIR}" ]]
|
||||||
then
|
then
|
||||||
pushd "${FLATPAK_DIR}" > /dev/null
|
pushd "${FLATPAK_DIR}" > /dev/null
|
||||||
|
chmod -R ugo=rX .
|
||||||
for file in $(find repo)
|
for file in $(find repo)
|
||||||
do
|
do
|
||||||
if [[ "${file}" == "repo/.lock" ]]
|
if [[ "${file}" == "repo/.lock" ]]
|
||||||
|
|
@ -29,7 +30,6 @@ then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
echo "-map ${PWD}/${file} flatpak/${file}"
|
echo "-map ${PWD}/${file} flatpak/${file}"
|
||||||
echo "-chmod 0444 flatpak/${file}"
|
|
||||||
done
|
done
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue