comparison sbin/fpkg @ 688:3e96fc952c45

fpkg: Allow spaces in jail names for "fpkg etcupdate-status"
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 01 Oct 2024 15:03:28 +0200
parents bda643a6310e
children b9194bec5504
comparison
equal deleted inserted replaced
687:5156eaa27ac9 688:3e96fc952c45
331 ' 331 '
332 local _j _OLDIFS 332 local _j _OLDIFS
333 333
334 printf '%sLOCALHOST\n' "${FPKG_SIGN}" 334 printf '%sLOCALHOST\n' "${FPKG_SIGN}"
335 /usr/sbin/etcupdate status 335 /usr/sbin/etcupdate status
336 _OLDIFS="${IFS}" 336 _OLDIFS="$IFS"
337 IFS=$'\n' 337 IFS=$'\n'
338 for _j in $(/usr/sbin/jls name | /usr/bin/sort); do 338 for _j in $(/usr/sbin/jls name | LC_ALL=C.UTF-8 /usr/bin/sort); do
339 printf '\n%sJAIL: %s\n' "${FPKG_SIGN}" "${_j}" 339 printf '\n%sJAIL: %s\n' "${FPKG_SIGN}" "${_j}"
340 LC_ALL=C.UTF-8 /usr/sbin/jexec -- "${_j}" /usr/sbin/etcupdate status 340 LC_ALL=C.UTF-8 /usr/sbin/jexec -- "${_j}" /usr/sbin/etcupdate status
341 done 341 done
342 IFS="${_OLDIFS}" 342 IFS="$_OLDIFS"
343 } 343 }
344 344
345 345
346 # 346 #
347 # Global option handling 347 # Global option handling