From dbd80e52a0196cae4daeebc6b1267e78377be006 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 12 Mar 2016 13:38:01 +0000 Subject: [PATCH] create directory if it doesn't exist --- src/freedombone | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone b/src/freedombone index 92c8dad8..3044779f 100755 --- a/src/freedombone +++ b/src/freedombone @@ -6631,6 +6631,10 @@ function install_owncloud_official_deb { # get the official owncloud deb package. Note that this is not the same as the one # from the debian repos, and doesn't follow the debian packaging guidelines + if [ ! -d $INSTALL_DIR ]; then + mkdir $INSTALL_DIR + fi + cd $INSTALL_DIR wget -nv https://download.owncloud.org/download/repositories/stable/Debian_8.0/Release.key -O owncloud.key apt-key add - < owncloud.key