IRC: fix config paths (/app/conf for UnrealIRCd, initcopy for Anope)

This commit is contained in:
root
2026-03-09 17:11:56 -05:00
parent 85138c45de
commit 388ec876da

View File

@@ -87,8 +87,8 @@ stringData:
port 6697; port 6697;
options { tls; } options { tls; }
tls-options { tls-options {
certificate "/usr/unrealircd/conf/tls/tls.crt"; certificate "/app/conf/tls/tls.crt";
key "/usr/unrealircd/conf/tls/tls.key"; key "/app/conf/tls/tls.key";
} }
} }
@@ -156,8 +156,8 @@ stringData:
/* TLS config */ /* TLS config */
tls { tls {
certificate "/usr/unrealircd/conf/tls/tls.crt"; certificate "/app/conf/tls/tls.crt";
key "/usr/unrealircd/conf/tls/tls.key"; key "/app/conf/tls/tls.key";
} }
} }
--- ---
@@ -420,12 +420,12 @@ spec:
name: services-link name: services-link
volumeMounts: volumeMounts:
- name: unrealircd-config - name: unrealircd-config
mountPath: /usr/unrealircd/conf/unrealircd.conf mountPath: /app/conf/unrealircd.conf
subPath: unrealircd.conf subPath: unrealircd.conf
- name: unrealircd-data - name: unrealircd-data
mountPath: /usr/unrealircd/data mountPath: /app/data
- name: irc-tls - name: irc-tls
mountPath: /usr/unrealircd/conf/tls mountPath: /app/conf/tls
readOnly: true readOnly: true
resources: resources:
requests: requests:
@@ -466,10 +466,15 @@ spec:
containers: containers:
- name: anope - name: anope
image: anope/anope:latest image: anope/anope:latest
command: ["/bin/sh", "-c"]
args:
- |
mkdir -p /data/conf /data/logs
cp /config/services.conf /data/conf/services.conf
exec /anope/bin/services --nofork
volumeMounts: volumeMounts:
- name: anope-config - name: anope-config
mountPath: /data/conf/services.conf mountPath: /config
subPath: services.conf
- name: anope-data - name: anope-data
mountPath: /data mountPath: /data
resources: resources: