Fix linking of manifest into /custom/lib/apparmor/clicks/.

ubuntu/yakkety
Colin Watson 10 years ago
parent 68e78ecd52
commit f4589e7c31

@ -31,7 +31,7 @@ for manifest in /var/lib/apparmor/clicks/*; do
name="${pkgdir_noversion##*/}"
if [ -d "/custom/click/$name/$version" ]; then
# Clone into custom.
ln -nsf "/custom/click/$name/$version$manifest_tail" "/custom/lib/apparmor/clicks$manifest_tail"
ln -nsf "/custom/click/$name/$version$manifest_tail" "/custom/lib/apparmor/clicks/${manifest##*/}"
profile="$(basename "$manifest" .json)"
cp -a "/var/lib/apparmor/profiles/click_$profile" /custom/lib/apparmor/profiles/
if [ -d "/usr/share/click/preinstalled/$name/$version" ]; then

Loading…
Cancel
Save