mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-25 02:29:32 +02:00
Create an order
This commit is contained in:
parent
dfe2dc2f54
commit
64d92e504a
@ -27,6 +27,8 @@ if [[ ! -z "$(docker images -q rspamd)" ]]; then
|
||||
docker rmi rspamd
|
||||
build
|
||||
fi
|
||||
else
|
||||
build
|
||||
fi
|
||||
|
||||
docker run \
|
22
README.md
22
README.md
@ -107,7 +107,7 @@ When renewing certificates, run the last two steps (link + restart) as post-hook
|
||||
|
||||
(Re)build a container:
|
||||
```
|
||||
./build-$name.sh
|
||||
./n-build-$name.sh
|
||||
```
|
||||
**:exclamation:** Any previous container with the same name will be stopped and removed.
|
||||
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:
|
||||
```
|
||||
./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`:
|
||||
```
|
||||
./build-sql.sh --reset-admin
|
||||
./n-build-sql.sh --reset-admin
|
||||
```
|
||||
|
||||
Dump database to file backup_${DBNAME}_${DATE}.sql:
|
||||
```
|
||||
./build-sql.sh --dump
|
||||
./n-build-sql.sh --dump
|
||||
```
|
||||
|
||||
Restore database from a file:
|
||||
```
|
||||
./build-sql.sh --restore filename
|
||||
./n-build-sql.sh --restore filename
|
||||
```
|
||||
|
||||
### Redis
|
||||
|
||||
Connect to redis database:
|
||||
```
|
||||
./build-redis.sh --client
|
||||
./n-build-redis.sh --client
|
||||
```
|
||||
|
||||
### Rspamd examples
|
||||
@ -172,7 +172,7 @@ MariaDB:
|
||||
docker stop mariadb-mailcow
|
||||
docker rm mariadb-mailcow
|
||||
rm -rf data/db/mysql/*
|
||||
./build-sql.sh
|
||||
./n-build-sql.sh
|
||||
```
|
||||
|
||||
Redis:
|
||||
@ -181,9 +181,9 @@ Redis:
|
||||
docker stop redis-mailcow
|
||||
docker rm redus-mailcow
|
||||
rm -rf data/db/redis/*
|
||||
./build-redis.sh
|
||||
./n-build-redis.sh
|
||||
|
||||
## It is almost always enough to just flush all keys:
|
||||
./build-redis client
|
||||
./n-build-redis client
|
||||
# FLUSHALL [ENTER]
|
||||
```
|
||||
|
@ -2,13 +2,9 @@
|
||||
|
||||
/bin/bash port-check.sh
|
||||
[[ $? != 0 ]] && exit 1
|
||||
/bin/bash build-network.sh
|
||||
/bin/bash build-pdns.sh
|
||||
|
||||
[[ $? != 0 ]] && exit 1
|
||||
for buildx in $(ls build-*.sh | grep -vE "all|network|pdns"); do
|
||||
for build in $(ls *build*.sh | grep -v all); do
|
||||
echo "Starting build file ${buildx} ..."
|
||||
/bin/bash ${buildx}
|
||||
done
|
||||
|
||||
/bin/bash fix-permissions.sh
|
||||
|
Loading…
Reference in New Issue
Block a user