forked from pool/python-HyperKitty
- Added hyperkitty-qcluster.service - Added hyperkitty-runjob.service and hyperkitty-runjob.timer - Create a HyperKitty-web package with webroot files - Create a HyperKitty-web-uwsgi with uwsgi configuration - Added postorius-settings.patch * Sets the FHS default paths - Added hyperkitty-fix-tests.patch * Make migration compatible with django >= 3.1 - Added rpmlint config OBS-URL: https://build.opensuse.org/request/show/856002 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-HyperKitty?expand=0&rev=27
32 lines
1.4 KiB
Bash
32 lines
1.4 KiB
Bash
#!/bin/sh
|
|
LOG_DIR="/var/log/hyperkitty"
|
|
LIB_DIR="/var/lib/hyperkitty"
|
|
DATA_DIR="$LIB_DIR/data/"
|
|
|
|
setfacl -R --no-mask -m u:hyperkitty-admin:rwX ${DATA_DIR}
|
|
setfacl -R -d --no-mask -m u:hyperkitty-admin:rwX ${DATA_DIR}
|
|
|
|
chown hyperkitty-admin:hyperkitty-admin ${LIB_DIR}
|
|
chmod u=rwX,g=rwX,o= ${LIB_DIR}
|
|
|
|
chown -R hyperkitty:hyperkitty ${DATA_DIR}
|
|
chmod -R u=rwX,g=rwX,o= ${DATA_DIR}
|
|
|
|
chown hyperkitty:hyperkitty ${DATA_DIR}/hyperkitty.db 2>/dev/null
|
|
chmod u=rwX,g=rwX,o= ${DATA_DIR}/hyperkitty.db 2>/dev/null
|
|
|
|
setfacl -R --no-mask -m u:hyperkitty:rwX ${DATA_DIR}
|
|
setfacl -R -d --no-mask -m u:hyperkitty:rwX ${DATA_DIR}
|
|
setfacl -R --no-mask -m u:hyperkitty-admin:rwX ${DATA_DIR}
|
|
setfacl -R -d --no-mask -m u:hyperkitty-admin:rwX ${DATA_DIR}
|
|
|
|
chown hyperkitty-admin:hyperkitty-admin ${LOG_DIR}
|
|
chmod u=rwX,g=rwX,o= ${LOG_DIR}
|
|
chown hyperkitty-admin:hyperkitty-admin ${LOG_DIR}/hyperkitty.log 2>/dev/null
|
|
chmod u=rwX,g=rwX,o= ${LOG_DIR}/hyperkitty.log 2>/dev/null
|
|
|
|
setfacl -R --no-mask -m u:hyperkitty:rwX ${LOG_DIR}
|
|
setfacl -R -d --no-mask -m u:hyperkitty:rwX ${LOG_DIR}
|
|
setfacl -R --no-mask -m u:hyperkitty-admin:rwX ${LOG_DIR}
|
|
setfacl -R -d --no-mask -m u:hyperkitty-admin:rwX ${LOG_DIR}
|