troubleshoot: print box version

This commit is contained in:
Girish Ramakrishnan
2024-04-17 09:26:32 +02:00
parent a572374ad7
commit 308f315ed5

View File

@@ -77,8 +77,10 @@ function check_host_mysql() {
}
function check_box() {
[[ -f /home/yellowtent/box/VERSION ]] && version=$(cat /home/yellowtent/box/VERSION) || version='<unknown>'
if ! systemctl is-active -q box; then
info "box is down. re-running migration script and restarting it ..."
info "box v${version} is down. re-running migration script and restarting it ..."
/home/yellowtent/box/setup/start.sh
systemctl stop box # a restart sometimes doesn't restart, no idea
@@ -90,7 +92,7 @@ function check_box() {
fi
fi
success "box is running"
success "box v${version} is running"
}
function owner_login() {