Browse Source

create directory if it doesn't exist

Bob Mottram 9 years ago
parent
commit
dbd80e52a0
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone

+ 4
- 0
src/freedombone View File

@@ -6631,6 +6631,10 @@ function install_owncloud_official_deb {
6631 6631
 
6632 6632
     # get the official owncloud deb package. Note that this is not the same as the one
6633 6633
     # from the debian repos, and doesn't follow the debian packaging guidelines
6634
+    if [ ! -d $INSTALL_DIR ]; then
6635
+        mkdir $INSTALL_DIR
6636
+    fi
6637
+
6634 6638
     cd $INSTALL_DIR
6635 6639
     wget -nv https://download.owncloud.org/download/repositories/stable/Debian_8.0/Release.key -O owncloud.key
6636 6640
     apt-key add - < owncloud.key