|
@@ -1359,7 +1359,7 @@ function import_email {
|
1359
|
1359
|
fi
|
1360
|
1360
|
echo 'import_email' >> $COMPLETION_FILE
|
1361
|
1361
|
if [[ $SYSTEM_TYPE == "email" || $SYSTEM_TYPE == "mailbox" ]]; then
|
1362
|
|
- apt-get -y --force-yes autoremove
|
|
1362
|
+ apt-get -y --force-yes autoremove
|
1363
|
1363
|
# unmount any attached usb drive
|
1364
|
1364
|
echo ''
|
1365
|
1365
|
echo $EMAIL_COMPLETE_MSG
|
|
@@ -1385,6 +1385,9 @@ function install_web_server {
|
1385
|
1385
|
# install nginx
|
1386
|
1386
|
apt-get -y --force-yes install nginx php5-fpm git
|
1387
|
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
|
1391
|
cd $INSTALL_DIR
|
1389
|
1392
|
git clone https://github.com/perusio/nginx_ensite
|
1390
|
1393
|
cd $INSTALL_DIR/nginx_ensite
|