Browse Source

Check for blank default domain name

Bob Mottram 10 years ago
parent
commit
208f793bfc
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone

+ 4
- 0
src/freedombone View File

@@ -6250,6 +6250,10 @@ function install_owncloud {
6250 6250
   fi
6251 6251
   # if this is exclusively a cloud setup
6252 6252
   if [[ $SYSTEM_TYPE == "$VARIANT_CLOUD" ]]; then
6253
+      if [ ! $DOMAIN_NAME ]; then
6254
+          echo 'No default domain name when installing cloud variant'
6255
+          exit 5380
6256
+      fi
6253 6257
       OWNCLOUD_DOMAIN_NAME=$DOMAIN_NAME
6254 6258
   fi
6255 6259
   if [ ! $OWNCLOUD_DOMAIN_NAME ]; then