Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
redhat:base-redhat:basics-redhat [2019/03/05 16:29] – michael | redhat:base-redhat:basics-redhat [2019/06/11 10:24] (current) – [System Information] michael | ||
---|---|---|---|
Line 6: | Line 6: | ||
===== Basis Know-How Redhat Systems ===== | ===== Basis Know-How Redhat Systems ===== | ||
+ | |||
+ | * [[linux: | ||
+ | * [[linux: | ||
+ | |||
<WRAP center box 100%> | <WRAP center box 100%> | ||
Line 11: | Line 15: | ||
'' | '' | ||
- | <wrap em> | + | <wrap em> |
</ | </ | ||
Line 27: | Line 31: | ||
==== motd - Message of the day==== | ==== motd - Message of the day==== | ||
'' | '' | ||
- | |||
- | Add description and serial number to motd: | ||
< | < | ||
Line 386: | Line 388: | ||
</ | </ | ||
+ | |||
+ | <WRAP center box 100%> | ||
+ | ==== Show what exactly a Package does on installation ==== | ||
+ | '' | ||
+ | < | ||
+ | <sxh plain; gutter: false;> | ||
+ | postinstall scriptlet (using /bin/sh): | ||
+ | #!/bin/sh | ||
+ | |||
+ | if [ ! -e / | ||
+ | cp / | ||
+ | fi | ||
+ | |||
+ | if ! grep / | ||
+ | sed -i -e " | ||
+ | / | ||
+ | fi | ||
+ | |||
+ | service httpd reload | ||
+ | |||
+ | patchman-set-secret-key | ||
+ | chown apache / | ||
+ | |||
+ | mkdir -p / | ||
+ | patchman-manage collectstatic --noinput | ||
+ | |||
+ | patchman-manage makemigrations | ||
+ | patchman-manage migrate --run-syncdb | ||
+ | |||
+ | chown -R apache: | ||
+ | chcon --type httpd_sys_rw_content_t / | ||
+ | |||
+ | echo | ||
+ | echo " | ||
+ | echo | ||
+ | </ | ||
+ | </ | ||
---- | ---- |