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

. /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