troubleshoot: print box version
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user