aboutsummaryrefslogtreecommitdiff
path: root/debian/boca-autojudge.postinst
diff options
context:
space:
mode:
authorDavi Antônio da Silva Santos <antoniossdavi@gmail.com>2023-03-02 02:55:08 +0000
committerDavi Antônio da Silva Santos <antoniossdavi@gmail.com>2023-03-04 01:24:15 +0000
commitb08843cae0ae8aa428a2a654fc48fbd15c65c714 (patch)
treefa6418ed4ad4a7221bfcebe14203b2a8806a65b7 /debian/boca-autojudge.postinst
parent89d0e395460fe5c0501d95c1223a866a53bdff6b (diff)
downloadboca-b08843cae0ae8aa428a2a654fc48fbd15c65c714.tar.gz
boca-b08843cae0ae8aa428a2a654fc48fbd15c65c714.zip
Abort maintainer scripts on failure
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.
Diffstat (limited to 'debian/boca-autojudge.postinst')
-rw-r--r--debian/boca-autojudge.postinst5
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/boca-autojudge.postinst b/debian/boca-autojudge.postinst
index 06fa222..1813aa0 100644
--- a/debian/boca-autojudge.postinst
+++ b/debian/boca-autojudge.postinst
@@ -1,7 +1,8 @@
#!/bin/bash
+set -e
-chmod 4555 /usr/bin/safeexec
-chmod 700 /usr/sbin/boca-createjail
+chmod 4555 /usr/bin/safeexec
+chmod 700 /usr/sbin/boca-createjail
chmod 700 /usr/sbin/boca-autojudge
exit 0