Browse Source

add --auto and --nolog options to install and upgrade commands

umbrel
kenshin-samourai 5 years ago
parent
commit
4542468f18
  1. 16
      docker/my-dojo/dojo.sh

16
docker/my-dojo/dojo.sh

@ -88,18 +88,20 @@ install() {
launchInstall=1 launchInstall=1
if [ -z "$1" ]; then if [ "$1" = "--auto" ]; then
launchInstall=0
else
get_confirmation get_confirmation
launchInstall=$? launchInstall=$?
else
launchInstall=0
fi fi
if [ $launchInstall -eq 0 ]; then if [ $launchInstall -eq 0 ]; then
init_config_files init_config_files
docker_up --remove-orphans docker_up --remove-orphans
if [ "$1" != "--nolog" ]; then
logs logs
fi fi
fi
} }
# Delete everything # Delete everything
@ -144,11 +146,11 @@ upgrade() {
launchUpgrade=1 launchUpgrade=1
if [ -z "$1" ]; then if [ "$1" = "--auto" ]; then
launchUpgrade=0
else
get_confirmation get_confirmation
launchUpgrade=$? launchUpgrade=$?
else
launchUpgrade=0
fi fi
if [ $launchUpgrade -eq 0 ]; then if [ $launchUpgrade -eq 0 ]; then
@ -160,8 +162,10 @@ upgrade() {
eval "docker-compose $yamlFiles build --no-cache" eval "docker-compose $yamlFiles build --no-cache"
docker_up --remove-orphans docker_up --remove-orphans
update_dojo_db update_dojo_db
if [ "$1" != "--nolog" ]; then
logs logs
fi fi
fi
} }
# Display the onion address # Display the onion address

Loading…
Cancel
Save