aboutsummaryrefslogtreecommitdiff
path: root/debian/boca-common.postinst
Commit message (Collapse)AuthorAgeFiles
* 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]
* chmods in the postinstcassio2018-08-291
|
* d/boca-{common,db}.postinst: Avoid asking same question on upgradeBruno Cesar Ribas2018-08-241
| | | | | | | From now on the user must remove lines containing 'bdserver' or 'bdcreated in /etc/boca.conf in order to modify the DB password and the DB hostname. Signed-off-by: Bruno Cesar Ribas <brunoribas@gmail.com>
* d/boca-common.{postinst,templates}: Adds new postinstBruno Cesar Ribas2018-08-231
This version will prompt user for a DB hostname and password Signed-off-by: Bruno Cesar Ribas <brunoribas@gmail.com>