diff options
Diffstat (limited to 'apps/onlyoffice_docker.sh')
-rw-r--r-- | apps/onlyoffice_docker.sh | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/apps/onlyoffice_docker.sh b/apps/onlyoffice_docker.sh index 7902350e..8189ec36 100644 --- a/apps/onlyoffice_docker.sh +++ b/apps/onlyoffice_docker.sh @@ -49,7 +49,14 @@ then # If yes, then stop and prune the docker container docker_prune_this 'onlyoffice/documentserver' # Revoke LE - SUBDOMAIN=$(input_box "Please enter the subdomain you are using for Onlyoffice Docker, e.g: office.yourdomain.com") + while : + do + SUBDOMAIN=$(input_box "Please enter the subdomain you are using for OnlyOffice, e.g: office.yourdomain.com") + if yesno_box_yes "Is this correct? $SUBDOMAIN" + then + break + fi + done if [ -f "$CERTFILES/$SUBDOMAIN/cert.pem" ] then yes no | certbot revoke --cert-path "$CERTFILES/$SUBDOMAIN/cert.pem" @@ -157,9 +164,18 @@ then fi fi -# OnlyOffice URL (onlyoffice.sh) -SUBDOMAIN=$(input_box "OnlyOffice subdomain e.g: office.yourdomain.com\n\nNOTE: This domain must be different than your Nextcloud domain. They can however be hosted on the same server, but would require seperate DNS entries.") -# Nextcloud Main Domain (onlyoffice.sh) +# Ask for the domain for OnlyOffice +while : +do + # OnlyOffice URL (onlyoffice.sh) + SUBDOMAIN=$(input_box "OnlyOffice subdomain e.g: office.yourdomain.com\n\nNOTE: This domain must be different than your Nextcloud domain. They can however be hosted on the same server, but would require seperate DNS entries.") + if yesno_box_yes "Is this correct? $SUBDOMAIN" + then + break + fi +done + +# Nextcloud Main Domain NCDOMAIN=$(occ_command_no_check config:system:get overwrite.cli.url | sed 's|https://||;s|/||') # shellcheck disable=2034,2059 @@ -318,6 +334,7 @@ then # Add prune command add_dockerprune # Restart Docker + print_text_in_color "$ICyan" "Restaring Docker..." systemctl restart docker.service docker restart onlyoffice print_text_in_color "$IGreen" "OnlyOffice Docker is now successfully installed." |