container-upgrade
This commit is contained in:
+3
-10
@@ -1,18 +1,11 @@
|
||||
#!/usr/bin/env miaou-bash
|
||||
|
||||
# CONSTANTS
|
||||
|
||||
INSTALL_URL='https://git.artcode.re/miaou/miaou-bash/raw/branch/main/install.sh'
|
||||
|
||||
# FUNCTIONS
|
||||
|
||||
function hosted_upgrade {
|
||||
cat >&2 <<EOF
|
||||
FAILURE:
|
||||
You are running inside a container within the HOSTED miaou mode.
|
||||
Perform the same action again underneath HOST machine!
|
||||
EOF
|
||||
builtin exit 10
|
||||
function container_upgrade {
|
||||
. "$MIAOU_BASH_DIR"/lib/container-upgrade.bash
|
||||
}
|
||||
|
||||
function development_upgrade {
|
||||
@@ -74,7 +67,7 @@ function perform_upgrade {
|
||||
source "$MIAOU_BASH_DIR"/lib/functions.bash
|
||||
fetch_mode
|
||||
case "$MIAOU_BASH_MODE" in
|
||||
hosted) hosted_upgrade ;;
|
||||
hosted) container_upgrade ;;
|
||||
development) development_upgrade ;;
|
||||
system) system_upgrade ;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user