diff --git a/INSTALL.sh b/INSTALL.sh index 83e911cb..b3720aaf 100644 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -11,7 +11,7 @@ # Usage: bash <(curl -sSL https://openpanel.org) # Author: Stefan Pejcic # Created: 11.07.2023 -# Last Modified: 03.12.2024 +# Last Modified: 11.12.2024 # ################################################################################ @@ -1580,16 +1580,27 @@ setup_bind(){ --entrypoint=/bin/sh \ ubuntu/bind9:latest \ -c 'rndc-confgen -a -A hmac-sha256 -b 256 -c /etc/bind/rndc.key' - - # Check if the file exists - if [ -f "$RNDC_KEY_PATH" ]; then - : - else - debug_log "Error: rndc.key not found after attempt $((RETRY_COUNT_RDNC + 1))." - fi + + if [ $? -ne 0 ]; then + echo "Error: Generating rndc.key failed." | tee -a "$LOG_FILE" + if grep -q "Unable to find image 'ubuntu/bind9:latest' locally" "$LOG_FILE" && + grep -q "dial tcp: lookup registry-1.docker.io" "$LOG_FILE"; then + radovan 1 "Failed to connect to Docker Registry on port 53 - try setting Google DNS nameservers as suggested in: https://github.com/stefanpejcic/OpenPanel/issues/294 and then retry the installation." + else + echo "Unknown error occurred. Please check the log for details." | tee -a "$LOG_FILE" + fi + + # Check if the file exists + if [ -f "$RNDC_KEY_PATH" ]; then + : + else + debug_log "Error: rndc.key not found after attempt $((RETRY_COUNT_RDNC + 1))." + fi RETRY_COUNT_RDNC=$((RETRY_COUNT_RDNC + 1)) sleep 2 + fi + done if [ -f "$RNDC_KEY_PATH" ]; then echo "rndc.key successfully generated." diff --git a/version/0.3.8/UPDATE.sh b/version/0.3.8/UPDATE.sh index d73c2bc3..c496910e 100644 --- a/version/0.3.8/UPDATE.sh +++ b/version/0.3.8/UPDATE.sh @@ -273,6 +273,8 @@ run_custom_postupdate_script() { download_new_admin() { + touch /etc/openpanel/openadmin/config/admin.ini + cd $OPENADMIN_DIR git pull diff --git a/website/docs/changelog/0.3.8.md b/website/docs/changelog/0.3.8.md index 2176e172..a01c0763 100644 --- a/website/docs/changelog/0.3.8.md +++ b/website/docs/changelog/0.3.8.md @@ -12,10 +12,14 @@ Not yet released. - [Implement CSRF protection on all forms #272](https://github.com/stefanpejcic/OpenPanel/issues/272) - Fixed bug displaying avatar type on 'OpenPanel > FileManager'. - Fixed bug with translations for 'OpenPanel > SiteManager' on Flarum and WordPress templates. +- Fixed bug renewing ssl using `opencli ssl-domain` command. +- [Docker Hub unreachable with Contabo custom nameservers #294](https://github.com/stefanpejcic/OpenPanel/issues/294) ### 💅 Polish +- If ipv4 is not available on the server, new domains will instead use ipv6 in Nginx and Bind9 configuration files. [Full support for IPv6 only servers is in progress](https://github.com/stefanpejcic/OpenPanel/issues/296) - Redesigned OpenAdmin Dashboard page. +- 'OpenAdmin > Users > singe user' will now display IPv6 address if set for the user. - Suspending user will now redirect all their domains to custom [suspended_user.html](https://github.com/stefanpejcic/openpanel-configuration/blob/main/nginx/suspended_user.html) template. - OpenPanel can now be updated [directly from Github](/docs/admin/intro/#manual-updates). - [`opencli domains-add` command](https://dev.openpanel.com/cli/domains.html#Add-Domain-to-User) will no longer allow users to add the server hostname as a domain.