* changes:
add: motion system from source
add: virtual resource collectors for nginx+pg
chg: use explicit resources for nginx-binds
chg: extract lxc-bind-mounts to own resources
}
function update {
title 'S1: apt-get; clone'
- ssh_target -t "( sudo apt-get update | cat ) && ( DEBIAN_FRONTEND=noninteractive sudo -E apt-get upgrade -o Dpkg::Options::=\"--force-confold\" -y | cat ) && ( sudo apt-get install -y git curl $devPkgs | cat )"
+ ssh_target -t "{ sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo -E apt-get upgrade -o Dpkg::Options::=\"--force-confold\" -y && sudo apt-get install -y git curl $devPkgs; } | cat"
echo "Git init"
ssh_target -t '[[ -d .git ]] || git init;'
echo "Git push"
} -> exec {"lxc-$contname-started":
path => '/usr/bin',
refreshonly => true,
+ # TODO use `systemctl is-system-running --wait` in systemd v240+
refresh => "/usr/bin/lxc-stop -n $contname ; /usr/bin/lxc-start -dn $contname; /usr/bin/lxc-attach -n $contname -- bash -c 'while ! [[ -S /run/systemd/private ]]; do sleep 1; done'",
}-> exec {"lxc-$contname-started1":
command => "/usr/bin/lxc-start -dn $contname; /usr/bin/lxc-attach -n $contname -- bash -c 'while ! [[ -S /run/systemd/private ]]; do sleep 1; done'",