Sfoglia il codice sorgente

Remove any existing install

Bob Mottram 8 anni fa
parent
commit
209471c8ed
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3
    3
      src/freedombone

+ 3
- 3
src/freedombone Vedi File

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