even more fix
This commit is contained in:
parent
9f89cf35e6
commit
a8d8127c73
1 changed files with 34 additions and 28 deletions
|
|
@ -3,33 +3,39 @@ DESTDIR=/
|
||||||
|
|
||||||
for profile in "$@"
|
for profile in "$@"
|
||||||
do
|
do
|
||||||
echo "Installing profile $profile"
|
echo "Installing profile $profile"
|
||||||
cp $BUILD/apparmor.d/$profile $DESTDIR/etc/apparmor.d/
|
cp $BUILD/apparmor.d/$profile $DESTDIR/etc/apparmor.d/
|
||||||
grep "rPx," "${BUILD}/apparmor.d/${profile}" | while read line
|
grep "rPx," "${BUILD}/apparmor.d/${profile}" | while read line
|
||||||
do
|
|
||||||
dep=$(echo "$l1" | awk '{print $1}')
|
|
||||||
dep=$(echo $dep | awk -F"/" '{print $NF}')
|
|
||||||
dep=$(eval "ls ${BUILD}/apparmor.d/${dep} 2>/dev/null")
|
|
||||||
for i in $dep
|
|
||||||
do
|
do
|
||||||
i=$(echo $i | awk -F"/" '{print $NF}')
|
if [[ -z "$dep" ]]; then
|
||||||
if [ ! -f "$DESTDIR/etc/apparmor.d/$i" ]; then
|
continue
|
||||||
bash "$0" "$i"
|
fi
|
||||||
fi
|
dep=$(echo "$l1" | awk '{print $1}')
|
||||||
done
|
dep=$(echo $dep | awk -F"/" '{print $NF}')
|
||||||
done
|
dep=$(eval "ls ${BUILD}/apparmor.d/${dep} 2>/dev/null")
|
||||||
grep "rPx -> " "${BUILD}/apparmor.d/${profile}" | while read line
|
for i in $dep
|
||||||
do
|
do
|
||||||
dep=${line%%#*}
|
i=$(echo $i | awk -F"/" '{print $NF}')
|
||||||
dep=$(echo $dep | awk '{print $NF}')
|
if [ ! -f "$DESTDIR/etc/apparmor.d/$i" ]; then
|
||||||
dep=${dep::-1}
|
bash "$0" "$i"
|
||||||
dep=$(eval "ls ${BUILD}/apparmor.d/${dep} 2>/dev/null")
|
fi
|
||||||
for i in $dep
|
done
|
||||||
do
|
done
|
||||||
i=$(echo $i | awk -F"/" '{print $NF}')
|
grep "rPx -> " "${BUILD}/apparmor.d/${profile}" | while read line
|
||||||
if [ ! -f "$DESTDIR/etc/apparmor.d/$i" ]; then
|
do
|
||||||
bash "$0" "$i"
|
if [[ -z "$dep" ]]; then
|
||||||
fi
|
continue
|
||||||
done
|
fi
|
||||||
done
|
dep=${line%%#*}
|
||||||
|
dep=$(echo $dep | awk '{print $NF}')
|
||||||
|
dep=${dep::-1}
|
||||||
|
dep=$(eval "ls ${BUILD}/apparmor.d/${dep} 2>/dev/null")
|
||||||
|
for i in $dep
|
||||||
|
do
|
||||||
|
i=$(echo $i | awk -F"/" '{print $NF}')
|
||||||
|
if [ ! -f "$DESTDIR/etc/apparmor.d/$i" ]; then
|
||||||
|
bash "$0" "$i"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue