Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions debian/python3-patchman.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ if [ "$1" = "configure" ] ; then
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke enconf patchman.conf

adduser --system --group patchman-celery
usermod -a -G www-data patchman-celery

patchman-set-secret-key
chown www-data /etc/patchman/local_settings.py

Expand All @@ -26,6 +23,9 @@ if [ "$1" = "configure" ] ; then
sqlite3 /var/lib/patchman/db/patchman.db 'PRAGMA journal_mode=WAL;'

chown -R www-data:www-data /var/lib/patchman
adduser --system --group patchman-celery
usermod -a -G www-data patchman-celery
chmod g+w /var/lib/patchman /var/lib/patchman/db /var/lib/patchman/db/patchman.db

echo
echo "Remember to run 'patchman-manage createsuperuser' to create a user."
Expand Down
3 changes: 3 additions & 0 deletions scripts/rpm-post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ patchman-manage migrate --run-syncdb --fake-initial
sqlite3 /var/lib/patchman/db/patchman.db 'PRAGMA journal_mode=WAL;'

chown -R apache:apache /var/lib/patchman
adduser --system --group patchman-celery
usermod -a -G apache patchman-celery
chmod g+w /var/lib/patchman /var/lib/patchman/db /var/lib/patchman/db/patchman.db
chcon --type httpd_sys_rw_content_t /var/lib/patchman/db/patchman.db
semanage port -a -t http_port_t -p tcp 5672
setsebool -P httpd_can_network_memcache 1
Expand Down