Skip to content

Commit 439e46f

Browse files
committed
Httpd container configuration: path permissions and system id auth file
1 parent b94afc9 commit 439e46f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

containers/proxy-config/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
server: server.tf.local
22
max_cache_size_mb: 20000
3-
system_id: 100001000
3+
binary_system_id: ""
44
55
binary_ca_certs: ""
66
binary_server_crt: ""

containers/proxy-httpd-image/uyuni-configure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# Save the systemid file
1515
with open("/etc/sysconfig/rhn/systemid", "w") as file:
16-
file.write(str(config['system_id']))
16+
file.write(base64.b64decode(config['binary_system_id']).decode())
1717

1818
# Decode and install SSL CA certificate
1919
with open("/etc/pki/trust/anchors/RHN-ORG-TRUSTED-SSL-CERT", "w") as file:
@@ -71,4 +71,4 @@
7171
os.system('chmod -R 755 /srv/www/htdocs/pub')
7272
os.system('chown -R wwwrun:www /var/spool/rhn-proxy')
7373
os.system('chmod -R 750 /var/spool/rhn-proxy')
74-
74+
os.system('chown -R wwwrun:root /var/cache/rhn/proxy-auth')

0 commit comments

Comments
 (0)