|
|
@ -34,7 +34,8 @@ while true; do
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
done
|
|
|
|
clear
|
|
|
|
clear
|
|
|
|
containers=$(pct list | tail -n +2 | cut -f1 -d' ')
|
|
|
|
exclude_container="$@"
|
|
|
|
|
|
|
|
containers=$(pct list | tail -n +2 | cut -f1 -d' ' | grep -vE "^($exclude_container)$")
|
|
|
|
function update_container() {
|
|
|
|
function update_container() {
|
|
|
|
container=$1
|
|
|
|
container=$1
|
|
|
|
header_info
|
|
|
|
header_info
|
|
|
@ -49,7 +50,6 @@ function update_container() {
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
}
|
|
|
|
header_info
|
|
|
|
header_info
|
|
|
|
|
|
|
|
|
|
|
|
for container in $containers; do
|
|
|
|
for container in $containers; do
|
|
|
|
status=$(pct status $container)
|
|
|
|
status=$(pct status $container)
|
|
|
|
template=$(pct config $container | grep -q "template:" && echo "true" || echo "false")
|
|
|
|
template=$(pct config $container | grep -q "template:" && echo "true" || echo "false")
|
|
|
|