File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
etc/s6-overlay/s6-rc.d/init-mariadb-config Expand file tree Collapse file tree 2 files changed +3
-11
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -11,17 +11,9 @@ mkdir -p \
11
11
sed -i "s|.*skip-networking.*|#skip-networking|g" /etc/my.cnf.d/mariadb-server.cnf
12
12
13
13
# setup custom cnf file
14
- if [[ ! -f /config/custom.cnf ]]; then
15
- cp /defaults/my.cnf /config/custom.cnf
16
- fi
17
-
18
- if [[ ! -L /etc/my.cnf.d/custom.cnf && -f /etc/my.cnf.d/custom.cnf ]]; then
19
- rm /etc/my.cnf.d/custom.cnf
20
- fi
21
-
22
- if [[ ! -L /etc/my.cnf.d/custom.cnf ]]; then
23
- ln -s /config/custom.cnf /etc/my.cnf.d/custom.cnf
24
- fi
14
+ cp -n /defaults/custom.cnf /config/custom.cnf
15
+ rm -rf /etc/my.cnf.d/custom.cnf
16
+ ln -s /config/custom.cnf /etc/my.cnf.d/custom.cnf
25
17
26
18
# set permissions
27
19
chmod -R 777 \
You can’t perform that action at this time.
0 commit comments