mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-16 15:20:38 +01:00
Merge pull request #433 from cedwards/linux-pkg-support
basic PKG support for ubuntu/debian containers
This commit is contained in:
@@ -47,10 +47,13 @@ fi
|
||||
|
||||
for _jail in ${JAILS}; do
|
||||
info "[${_jail}]:"
|
||||
if [ -f "/usr/sbin/pkg" ]; then
|
||||
jexec -l "${_jail}" /usr/sbin/pkg "$@"
|
||||
bastille_jail_path=$(jls -j "${_jail}" path)
|
||||
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
|
||||
jexec -l "${_jail}" /usr/sbin/mport "$@"
|
||||
jexec -l -U root "${_jail}" /usr/sbin/pkg "$@"
|
||||
fi
|
||||
echo
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user