mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-19 08:40:44 +01:00
basic PKG support for ubuntu/debian containers
This commit is contained in:
@@ -47,10 +47,13 @@ fi
|
|||||||
|
|
||||||
for _jail in ${JAILS}; do
|
for _jail in ${JAILS}; do
|
||||||
info "[${_jail}]:"
|
info "[${_jail}]:"
|
||||||
if [ -f "/usr/sbin/pkg" ]; then
|
bastille_jail_path=$(jls -j "${_jail}" path)
|
||||||
jexec -l "${_jail}" /usr/sbin/pkg "$@"
|
if [ -f "/usr/sbin/mport" ]; then
|
||||||
|
jexec -l -U root "${_jail}" /usr/sbin/mport "$@"
|
||||||
|
elif [ -f "${bastille_jail_path}/usr/bin/apt" ]; then
|
||||||
|
jexec -l "${_jail}" /usr/bin/apt "$@"
|
||||||
else
|
else
|
||||||
jexec -l "${_jail}" /usr/sbin/mport "$@"
|
jexec -l -U root "${_jail}" /usr/sbin/pkg "$@"
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user