Bläddra i källkod

Make build directory

Bob Mottram 10 år sedan
förälder
incheckning
de51a49170
1 ändrade filer med 4 tillägg och 1 borttagningar
  1. 4
    1
      install-freedombone.sh

+ 4
- 1
install-freedombone.sh Visa fil

1359
   fi
1359
   fi
1360
   echo 'import_email' >> $COMPLETION_FILE
1360
   echo 'import_email' >> $COMPLETION_FILE
1361
   if [[ $SYSTEM_TYPE == "email" || $SYSTEM_TYPE == "mailbox" ]]; then
1361
   if [[ $SYSTEM_TYPE == "email" || $SYSTEM_TYPE == "mailbox" ]]; then
1362
-	  apt-get -y --force-yes autoremove
1362
+      apt-get -y --force-yes autoremove
1363
       # unmount any attached usb drive
1363
       # unmount any attached usb drive
1364
       echo ''
1364
       echo ''
1365
       echo $EMAIL_COMPLETE_MSG
1365
       echo $EMAIL_COMPLETE_MSG
1385
   # install nginx
1385
   # install nginx
1386
   apt-get -y --force-yes install nginx php5-fpm git
1386
   apt-get -y --force-yes install nginx php5-fpm git
1387
   # install a script to easily enable and disable nginx virtual hosts
1387
   # install a script to easily enable and disable nginx virtual hosts
1388
+  if [ ! -d $INSTALL_DIR ]; then
1389
+      mkdir $INSTALL_DIR
1390
+  fi
1388
   cd $INSTALL_DIR
1391
   cd $INSTALL_DIR
1389
   git clone https://github.com/perusio/nginx_ensite
1392
   git clone https://github.com/perusio/nginx_ensite
1390
   cd $INSTALL_DIR/nginx_ensite
1393
   cd $INSTALL_DIR/nginx_ensite