mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Merge pull request #86 from YunoHost/apparmor-on-buster
fix apparmor on buster
This commit is contained in:
commit
80b60e3c60
1 changed files with 3 additions and 1 deletions
|
@ -141,10 +141,12 @@ if [ $dnsforce -eq 1 ]; then # Force la réécriture du resolv.conf
|
||||||
echo "nameserver $dns" | sudo tee /var/lib/lxc/$LXC_NAME/rootfs/etc/resolv.conf
|
echo "nameserver $dns" | sudo tee /var/lib/lxc/$LXC_NAME/rootfs/etc/resolv.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Fix an issue with apparmor when the container start.
|
||||||
if [ $(lsb_release -sc) != buster ]
|
if [ $(lsb_release -sc) != buster ]
|
||||||
then
|
then
|
||||||
# Fix an issue with apparmor when the container start.
|
|
||||||
echo -e "\n# Fix apparmor issues\nlxc.aa_profile = unconfined" | sudo tee -a /var/lib/lxc/$LXC_NAME/config >> "$LOG_BUILD_LXC" 2>&1
|
echo -e "\n# Fix apparmor issues\nlxc.aa_profile = unconfined" | sudo tee -a /var/lib/lxc/$LXC_NAME/config >> "$LOG_BUILD_LXC" 2>&1
|
||||||
|
else
|
||||||
|
echo -e "\n# Fix apparmor issues\nlxc.apparmor.profile = unconfined" | sudo tee -a /var/lib/lxc/$LXC_NAME/config >> "$LOG_BUILD_LXC" 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\e[1m> Démarrage de la machine\e[0m" | tee -a "$LOG_BUILD_LXC"
|
echo -e "\e[1m> Démarrage de la machine\e[0m" | tee -a "$LOG_BUILD_LXC"
|
||||||
|
|
Loading…
Add table
Reference in a new issue