modified: 01-setup.sh

This commit is contained in:
Myve 2024-08-20 00:33:23 +00:00
commit 1b9a4afbe4

View file

@ -160,8 +160,15 @@ MYVEMAIL_POSTFIXADMIN_DBPASS=$(openssl rand -hex 32)
gen-env
# Cleanup
rm -f ${0}
rm -r ${0} ./build -f
# Myvemail initial setup
docker compose pull
docker compose run --rm -it myvemail setup
# Startup
if [ -d ./data/sql/mysql/ ] && [ -d ./data/sql/postfixadmin/ ]
then
docker compose up -d
docker logs -f myvemail
fi