We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 158adf2 commit 2d6c058Copy full SHA for 2d6c058
1 file changed
imageroot/bin/module-dump-state
@@ -6,16 +6,22 @@
6
#
7
8
set -e
9
-
+if [ -f database.env ]; then
10
+ set -a # Export all variables automatically
11
+ source database.env # Load variables
12
+ set +a
13
+fi
14
if ! systemctl --user -q is-active semaphoreui.service; then
- exit 0
15
+ exit 0
16
fi
17
18
podman exec mariadb-app mysqldump \
- --databases semaphoreui \
- --default-character-set=utf8mb4 \
- --skip-dump-date \
- --ignore-table=mysql.event \
19
- --single-transaction \
20
- --quick \
21
- --add-drop-table > semaphoreui.sql
+ --databases semaphoreui \
+ --user=root \
+ --password="$MARIADB_ROOT_PASSWORD" \
22
+ --default-character-set=utf8mb4 \
23
+ --skip-dump-date \
24
+ --ignore-table=mysql.event \
25
+ --single-transaction \
26
+ --quick \
27
+ --add-drop-table >semaphoreui.sql
0 commit comments