mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-04 03:33:41 +01:00
upgrade: “not set” = “no release””
This commit is contained in:
@@ -164,7 +164,7 @@ jail_upgrade() {
|
|||||||
|
|
||||||
# Upgrade a thin jail
|
# Upgrade a thin jail
|
||||||
if grep -qw "${bastille_jailsdir}/${_jailname}/root/.bastille" "${bastille_jailsdir}/${_jailname}/fstab"; then
|
if grep -qw "${bastille_jailsdir}/${_jailname}/root/.bastille" "${bastille_jailsdir}/${_jailname}/fstab"; then
|
||||||
if [ -z "${_oldrelease}" ]; then
|
if [ "${_oldrelease}" = "not set" ]; then
|
||||||
_oldrelease="$(grep "${bastille_releasesdir}.*\.bastille.*nullfs.*" "${bastille_jailsdir}/${_jailname}/fstab" | awk -F"/releases/" '{print $2}' | awk '{print $1}')"
|
_oldrelease="$(grep "${bastille_releasesdir}.*\.bastille.*nullfs.*" "${bastille_jailsdir}/${_jailname}/fstab" | awk -F"/releases/" '{print $2}' | awk '{print $1}')"
|
||||||
fi
|
fi
|
||||||
local _newrelease="${NEWRELEASE}"
|
local _newrelease="${NEWRELEASE}"
|
||||||
|
|||||||
Reference in New Issue
Block a user