aboutsummaryrefslogtreecommitdiff
path: root/debian/boca-web.postinst
blob: 2006bff4d68b4e3539fb2a8a8b64f1e1e486a124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

. /usr/share/debconf/confmodule

chown -R www-data.www-data /var/www/boca
chmod -R go-rwx /var/www/boca/src/private

a2enmod socache_shmcb
a2enmod proxy_fcgi

# Make sure embedded apache php module is not loaded
a2dismod php7.4 || true

#enable php fpm instead
a2enconf php7.4-fpm

service apache2 restart || true

#remember to reset possible stored password from debconf
db_reset boca-common/dbpassword || true

exit 0