#!/bin/bash
for tmp in $(pct list | grep running | cut -c 1-3)
do
lxc-attach $tmp "[ -e /usr/bin/amp-full-upgrade ] && amp-full-upgrade "
done