Bob Mottram 10 лет назад
Родитель
Сommit
787b369ca0
1 измененных файлов: 12 добавлений и 0 удалений
  1. 12
    0
      install-freedombone.sh

+ 12
- 0
install-freedombone.sh Просмотреть файл

@@ -9,6 +9,17 @@ INSTALL_DIR=/root/build
9 9
 
10 10
 export DEBIAN_FRONTEND=noninteractive
11 11
 
12
+function argument_checks {
13
+  if [ ! $DOMAIN_NAME ]; then
14
+	  echo "Please specify your domain name"
15
+	  exit
16
+  fi
17
+  if [ ! $MY_USERNAME ]; then
18
+	  echo "Please specify your username"
19
+	  exit
20
+  fi
21
+}
22
+
12 23
 function initial_setup {
13 24
   apt-get -y update
14 25
   apt-get -y dist-upgrade
@@ -685,6 +696,7 @@ function folders_for_email_addresses {
685 696
   chmod +x /usr/bin/emailrule
686 697
 }
687 698
 
699
+argument_checks
688 700
 initial_setup
689 701
 install_editor
690 702
 enable_backports