Create an order

master
andryyy 2016-12-12 10:01:27 +01:00
parent dfe2dc2f54
commit 64d92e504a
14 changed files with 14 additions and 16 deletions

View File

@ -27,6 +27,8 @@ if [[ ! -z "$(docker images -q rspamd)" ]]; then
docker rmi rspamd docker rmi rspamd
build build
fi fi
else
build
fi fi
docker run \ docker run \

View File

@ -107,7 +107,7 @@ When renewing certificates, run the last two steps (link + restart) as post-hook
(Re)build a container: (Re)build a container:
``` ```
./build-$name.sh ./n-build-$name.sh
``` ```
**:exclamation:** Any previous container with the same name will be stopped and removed. **:exclamation:** Any previous container with the same name will be stopped and removed.
No persistent data is deleted at any time. No persistent data is deleted at any time.
@ -123,34 +123,34 @@ When a process dies, the container dies, too. Except for Postfix' container.
Connect to MariaDB database: Connect to MariaDB database:
``` ```
./build-sql.sh --client ./n-build-sql.sh --client
``` ```
Init schema (will also be installed when running `./build-sql.sh` without parameters): Init schema (will also be installed when running `./n-build-sql.sh` without parameters):
``` ```
./build-sql.sh --init-schema ./n-build-sql.sh --init-schema
``` ```
Reset mailcow admin to `admin:moohoo`: Reset mailcow admin to `admin:moohoo`:
``` ```
./build-sql.sh --reset-admin ./n-build-sql.sh --reset-admin
``` ```
Dump database to file backup_${DBNAME}_${DATE}.sql: Dump database to file backup_${DBNAME}_${DATE}.sql:
``` ```
./build-sql.sh --dump ./n-build-sql.sh --dump
``` ```
Restore database from a file: Restore database from a file:
``` ```
./build-sql.sh --restore filename ./n-build-sql.sh --restore filename
``` ```
### Redis ### Redis
Connect to redis database: Connect to redis database:
``` ```
./build-redis.sh --client ./n-build-redis.sh --client
``` ```
### Rspamd examples ### Rspamd examples
@ -172,7 +172,7 @@ MariaDB:
docker stop mariadb-mailcow docker stop mariadb-mailcow
docker rm mariadb-mailcow docker rm mariadb-mailcow
rm -rf data/db/mysql/* rm -rf data/db/mysql/*
./build-sql.sh ./n-build-sql.sh
``` ```
Redis: Redis:
@ -181,9 +181,9 @@ Redis:
docker stop redis-mailcow docker stop redis-mailcow
docker rm redus-mailcow docker rm redus-mailcow
rm -rf data/db/redis/* rm -rf data/db/redis/*
./build-redis.sh ./n-build-redis.sh
## It is almost always enough to just flush all keys: ## It is almost always enough to just flush all keys:
./build-redis client ./n-build-redis client
# FLUSHALL [ENTER] # FLUSHALL [ENTER]
``` ```

View File

@ -2,13 +2,9 @@
/bin/bash port-check.sh /bin/bash port-check.sh
[[ $? != 0 ]] && exit 1 [[ $? != 0 ]] && exit 1
/bin/bash build-network.sh
/bin/bash build-pdns.sh
[[ $? != 0 ]] && exit 1 for build in $(ls *build*.sh | grep -v all); do
for buildx in $(ls build-*.sh | grep -vE "all|network|pdns"); do
echo "Starting build file ${buildx} ..." echo "Starting build file ${buildx} ..."
/bin/bash ${buildx} /bin/bash ${buildx}
done done
/bin/bash fix-permissions.sh /bin/bash fix-permissions.sh