Sfoglia il codice sorgente

Remove if already existing

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

+ 3
- 0
src/freedombone Vedi File

@@ -9955,6 +9955,9 @@ function install_media_server {
9955 9955
 
9956 9956
 	# create a configuration
9957 9957
 	cd $MEDIA_SERVER_BASE_DIRECTORY
9958
+	if [ -f deployment.ini ]; then
9959
+		rm deployment.ini
9960
+	fi
9958 9961
 	paster make-config MediaDrop deployment.ini
9959 9962
 	if [ ! -f deployment.ini ]; then
9960 9963
 		echo $'deployment.ini not created'