aboutsummaryrefslogtreecommitdiff
path: root/debian/boca-web.postinst
Commit message (Collapse)AuthorAgeFiles
* Conflict with mod_php instead of disabling itDavi Antônio da Silva Santos2023-03-041
| | | | | | | The boca-web package will not try to disable Apache's php8.1 module (mod_php for PHP 8.1) anymore. It will conflict with the package that provides the offending module for the distribution's current PHP version, libapache2-mod-php.
* Remove Apache HTTPD commands from MakefileDavi Antônio da Silva Santos2023-03-041
| | | | | | | The package Makefile contained Apache HTTPD commands, and some of them were repeated in the boca-web post installation maintainer script. The commands were removed from the Makefile, as this requires having a valid apache2 installation as a build dependency.
* Migrate dependencies and maintainer scripts to PHP 8.1Davi Antônio da Silva Santos2023-03-041
| | | | | | | | The dependencies on PHP packages have been explicitly set to use PHP version 8.1. The boca-web post installation maintainer script has been updated with extra descriptions and a the required steps to migrate from PHP 7.4.
* Enable debhelper automatic generation of shell codeDavi Antônio da Silva Santos2023-03-041
| | | | | | | | | | | | | | | | | | The maintainer scripts have been modified with the addition of `#DEBHELPER#`. This enables dh_installdeb to automatically generate shell code on maintainer scripts. The following Lintian warnings have been addressed: * boca source: maintainer-script-lacks-debhelper-token [debian/boca-autojudge.postinst] * boca source: maintainer-script-lacks-debhelper-token [debian/boca-common.postinst] * boca source: maintainer-script-lacks-debhelper-token [debian/boca-db.postinst] * boca source: maintainer-script-lacks-debhelper-token [debian/boca-submission-tools.postinst] * boca source: maintainer-script-lacks-debhelper-token [debian/boca-web.postinst]
* Abort maintainer scripts on failureDavi Antônio da Silva Santos2023-03-041
| | | | | | | | | | | The `set -e` flag has been enabled in the maintainer scripts. This fixes the Lintian warnings: * boca-autojudge: maintainer-script-ignores-errors [postinst] * boca-submission-tools: maintainer-script-ignores-errors [postinst] * boca-web: maintainer-script-ignores-errors [postinst] The packages boca-common and boca-db were altered to set the flag as early as possible in their maintainer scripts.
* Fix chown usage in maintainer scriptsDavi Antônio da Silva Santos2023-03-041
| | | | | | | | | | | | The maintainer scripts used by boca-common and boca-web used points to separate the user from its group, which is discouraged. The point has been replaced with a colon as recommended by chown's manpage. This fixes the Lintian warnings: * boca-common: maintainer-script-calls-chown-improperly "chown www-data.www-data" [postinst:51] * boca-web: maintainer-script-calls-chown-improperly "chown -R www-data.www-data" [postinst:5]
* d/boca-web.postinst does not enable SSLBruno Ribas2020-11-051
| | | | | | | Although is important to user SSL connections with BOCA we will not enable default sites because it needs more configuration to make it work properly Signed-off-by: Bruno Ribas <brunoribas@gmail.com>
* d/boca-web.postinst: Update PHP versionBruno Ribas2020-11-051
| | | | | | This is important to comply with the new Ubuntu 20.04LTS Signed-off-by: Bruno Ribas <brunoribas@gmail.com>
* d/boca-web.posinst: Resets stored password in debconfBruno Cesar Ribas2018-08-231
| | | | | | This is a security measure to avoid DB password in multiple files Signed-off-by: Bruno Cesar Ribas <brunoribas@gmail.com>
* d/boca-web.postinst: Remove line regarding safeexecBruno Cesar Ribas2018-08-221
| | | | | | safeexec is now part of boca-autojudge package Signed-off-by: Bruno Cesar Ribas <brunoribas@gmail.com>
* d/boca-web.postinst: Add commands to enable php-fpmBruno Cesar Ribas2018-08-221
| | | | Signed-off-by: Bruno Cesar Ribas <brunoribas@gmail.com>
* Creating multiple packages for bocaBruno Cesar Ribas2018-08-221
Until now we had only one package for boca that contains all files. This approach is not correct since we may have multiple machines for some specific part of boca, eg, database and autojudge. This commit starts this new approach by updating Makefile, d/rules, d/*conffiles d/*postinst Signed-off-by: Bruno Cesar Ribas <brunoribas@gmail.com>