app-emulation/lxc: исправлена ревизия обновления до 4.0

mhiretskiy 2296
parent 947a03f738
commit dc0af1bbd0

@ -1,8 +0,0 @@
# Calculate run=/bin/bash pkg(app-emulation/lxc)>=4&&ini(merge.lxc)==
#-ini(merge.lxc,4)-#
sed -i 's,/usr/share/lxc/config/gentoo.common.conf,/usr/share/lxc/config/common.conf,' /var/calculate/lxc/*/config
sed -i 's,/usr/share/lxc/config/gentoo.userns.conf,/usr/share/lxc/config/userns.conf,' /var/calculate/lxc/*/config
exit 0

@ -0,0 +1,14 @@
# Calculate run=/bin/bash pkg(app-emulation/lxc)>=4&&ini(merge.lxc)==
#-ini(merge.lxc,4)-#
for configfile in /var/calculate/lxc/*/config
do
if [[ -f $configfile ]]
then
sed -i 's,/usr/share/lxc/config/gentoo.common.conf,/usr/share/lxc/config/common.conf,' $configfile
sed -i 's,/usr/share/lxc/config/gentoo.userns.conf,/usr/share/lxc/config/userns.conf,' $configfile
fi
done
exit 0
Loading…
Cancel
Save