mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-30 17:30:24 +01:00
upgrade: Fix jail update var
This commit is contained in:
@@ -157,6 +157,7 @@ jail_upgrade() {
|
||||
}
|
||||
|
||||
jail_updates_install() {
|
||||
local _jailname="${1}"
|
||||
local _jailpath="${bastille_jailsdir}/${TARGET}/root"
|
||||
local _workdir="${_jailpath}/var/db/freebsd-update"
|
||||
local _freebsd_update_conf="${_jailpath}/etc/freebsd-update.conf"
|
||||
@@ -175,7 +176,7 @@ jail_updates_install() {
|
||||
|
||||
# Check what we should upgrade
|
||||
if [ "${NEWRELEASE}" = "install" ]; then
|
||||
jail_updates_install
|
||||
jail_updates_install "${TARGET}"
|
||||
else
|
||||
jail_upgrade "${TARGET}" "${NEWRELEASE}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user