From 209471c8ed783a9d425797c82251d7987ac8a1c0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 17 Jun 2016 08:21:47 +0100 Subject: [PATCH] Remove any existing install --- src/freedombone | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedombone b/src/freedombone index 40b31387..69a4d53f 100755 --- a/src/freedombone +++ b/src/freedombone @@ -9918,10 +9918,10 @@ function install_media_server { apt-get -y install python-setuptools python-virtualenv apt-get -y install uwsgi uwsgi-plugin-python - # create directory - if [ ! -d $MEDIA_SERVER_BASE_DIRECTORY ]; then - mkdir -p $MEDIA_SERVER_BASE_DIRECTORY + if [ -d $MEDIA_SERVER_BASE_DIRECTORY ]; then + rm -rf $MEDIA_SERVER_BASE_DIRECTORY fi + mkdir -p $MEDIA_SERVER_BASE_DIRECTORY install_mariadb get_mariadb_password