From f99df602f341b1aca1af44b44080d054303545cd Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Sun, 3 Apr 2016 05:17:23 +0200 Subject: Use 'mkdir -p' to create intermediate directory where needed. --- install/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/install.sh b/install/install.sh index 049a8a34a..c5cf57068 100755 --- a/install/install.sh +++ b/install/install.sh @@ -122,7 +122,7 @@ fi echo '* get sources' -mkdir $INSTALL_PATH +mkdir -p $INSTALL_PATH mkdir $INSTALL_PATH'/conf' cd $INSTALL_PATH @@ -164,7 +164,7 @@ sed -s "s|#APP_NAME#|$APP_NAME|g;\ ln -s $INSTALL_PATH'/conf/local_settings.py' $APP_DIR'/local_settings.py' # rights -mkdir $APP_DIR'/media' +mkdir -p $APP_DIR'/media' chown -R root:www-data $APP_DIR'/media' chmod -R g+w $APP_DIR'/media' -- cgit v1.2.3