hosted initiate new version
This commit is contained in:
@@ -1,2 +1,12 @@
|
||||
MIAOU_BASH_DIR=/opt/miaou-bash
|
||||
export MIAOU_BASH_DIR
|
||||
|
||||
# useful when MIAOU_BASH_MODE=hosted/containerized
|
||||
if [[ -f /var/lib/miaou-bash/semver_current ]]; then
|
||||
container_version=$(</var/lib/miaou-bash/semver_current)
|
||||
host_version=$(<"$MIAOU_BASH_DIR"/.semver_git_tag)
|
||||
if [[ "$container_version" != "$host_version" ]]; then
|
||||
echo "initiate new version: $host_version (CTRL+C to bypass)"
|
||||
sudo miaou-bash "$MIAOU_BASH_DIR"/lib/initiate.bash
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user