blob: f48dfe776f7f2e9e937417b3b7462f223834a63b [file] [log] [blame]
#!/bin/sh
# Copyright 2022 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# update_satlab updates the satlab containers by running watchtower container once.
set -eu
cat << EOF
###############################################################################
IMPORTANT: Please read below information
###############################################################################
This operation will update and restart Satlab software, any tests currently in
progress will be impacted.
###############################################################################
EOF
while true; do
read -p "Do you want to continue with the Satlab update(y/n)?" yn
case $yn in
[Yy]* ) break;;
[Nn]* ) echo "Satlab update aborted!"; exit;;
* ) echo "Please answer yes or no.";;
esac
done
exec python3 /usr/local/bin/host_command.py "$0"