Remove if already existing

This commit is contained in:
Bob Mottram 2016-06-17 08:19:18 +01:00
parent 9d7e850a3e
commit 8b660c7a13
1 changed files with 3 additions and 0 deletions

View File

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