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