Fix compose project name, take #3

master
André Peters 2018-04-12 21:52:32 +02:00
parent 0ac3a66182
commit 182b7826bd
1 changed files with 2 additions and 3 deletions

View File

@ -208,9 +208,8 @@ docker-compose pull --parallel
cp -n data/assets/ssl-example/*.pem data/assets/ssl/ cp -n data/assets/ssl-example/*.pem data/assets/ssl/
echo -e "Fixing project name... " echo -e "Fixing project name... "
sed -i 's/COMPOSEPROJECT_NAME/COMPOSE_PROJECT_NAME/g' mailcow.conf sed -ie 's#COMPOSEPROJECT_NAME#COMPOSE_PROJECT_NAME#g' mailcow.conf
sed -i '/COMPOSE_PROJECT_NAME=.*/{s/-//}' mailcow.conf sed -i '/COMPOSE_PROJECT_NAME=/s/-//g' mailcow.conf
sed -i '/COMPOSE_PROJECT_NAME=.*/{s/_//}' mailcow.conf
echo -e "\e[32mStarting mailcow...\e[0m" echo -e "\e[32mStarting mailcow...\e[0m"
sleep 2 sleep 2