aboutsummaryrefslogtreecommitdiff
path: root/debian/boca-web.postinst
blob: ca537f599ff41069702aaa2c79329439f3ec48c1 (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