more archiveteam and qbit changes
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
#! /usr/bin/env nix
|
||||
#! nix shell nixpkgs#docker nixpkgs#bash --command bash
|
||||
#! nix shell nixpkgs#docker nixpkgs#bash nixpkgs#gawk --command bash
|
||||
|
||||
outdated_msg="Project code is out of date and needs to be upgraded. To remedy this problem immediately, you may reboot your warrior."
|
||||
|
||||
@ -19,6 +19,8 @@ for container in ${containers[@]}; do
|
||||
|
||||
if [[ $last_msg =~ $outdated_msg ]]; then
|
||||
echo "${container} is outdated, restarting"
|
||||
imageTag=$(docker ps --format '{{.Names}}\t{{.Image}}' -f "name=$container" | grep -w "$container" | awk '{print $NF}')
|
||||
docker pull "$imageTag"
|
||||
systemctl restart "docker-${container}"
|
||||
fi
|
||||
done
|
||||
|
Reference in New Issue
Block a user