Remove any existing install

This commit is contained in:
Bob Mottram 2016-06-17 08:21:47 +01:00
parent 8b660c7a13
commit 209471c8ed
1 changed files with 3 additions and 3 deletions

View File

@ -9918,10 +9918,10 @@ function install_media_server {
apt-get -y install python-setuptools python-virtualenv apt-get -y install python-setuptools python-virtualenv
apt-get -y install uwsgi uwsgi-plugin-python apt-get -y install uwsgi uwsgi-plugin-python
# create directory if [ -d $MEDIA_SERVER_BASE_DIRECTORY ]; then
if [ ! -d $MEDIA_SERVER_BASE_DIRECTORY ]; then rm -rf $MEDIA_SERVER_BASE_DIRECTORY
mkdir -p $MEDIA_SERVER_BASE_DIRECTORY
fi fi
mkdir -p $MEDIA_SERVER_BASE_DIRECTORY
install_mariadb install_mariadb
get_mariadb_password get_mariadb_password