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