mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-12 11:22:09 +00:00
Move default click database configuration aside while installing click packages, otherwise click gets clever and stops us installing things into multiple databases.
This commit is contained in:
parent
a10e22f77b
commit
5d707813f0
@ -16,8 +16,15 @@ chown clickpkg:clickpkg "$click_db"
|
|||||||
mkdir -p -m 755 "$click_db_custom"
|
mkdir -p -m 755 "$click_db_custom"
|
||||||
chown clickpkg:clickpkg "$click_db_custom"
|
chown clickpkg:clickpkg "$click_db_custom"
|
||||||
|
|
||||||
|
# move default configuration aside to stop click being clever about symlink
|
||||||
|
# layering
|
||||||
|
mv /etc/click/databases /etc/click/databases.tmp
|
||||||
|
|
||||||
tmpdir="$(mktemp -d)"
|
tmpdir="$(mktemp -d)"
|
||||||
cleanup () { rm -rf "$tmpdir"; }
|
cleanup () {
|
||||||
|
rm -rf "$tmpdir"
|
||||||
|
mv /etc/click/databases.tmp /etc/click/databases
|
||||||
|
}
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
|
||||||
CLICKARCH=$(dpkg --print-architecture)
|
CLICKARCH=$(dpkg --print-architecture)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user