aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorDavi Antônio da Silva Santos <antoniossdavi@gmail.com>2023-03-02 03:02:32 +0000
committerDavi Antônio da Silva Santos <antoniossdavi@gmail.com>2023-03-04 01:24:15 +0000
commit6695d2384069b7016398b2a55fc6962b1d8e6985 (patch)
tree67b0f947aa2396d217fda26da57d04253557b7f3 /debian
parentb08843cae0ae8aa428a2a654fc48fbd15c65c714 (diff)
downloadboca-6695d2384069b7016398b2a55fc6962b1d8e6985.tar.gz
boca-6695d2384069b7016398b2a55fc6962b1d8e6985.zip
Enable debhelper automatic generation of shell code
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]
Diffstat (limited to 'debian')
-rw-r--r--debian/boca-autojudge.postinst5
-rw-r--r--debian/boca-common.postinst5
-rw-r--r--debian/boca-db.postinst5
-rw-r--r--debian/boca-submission-tools.postinst7
-rw-r--r--debian/boca-web.postinst5
5 files changed, 27 insertions, 0 deletions
diff --git a/debian/boca-autojudge.postinst b/debian/boca-autojudge.postinst
index 1813aa0..274e73b 100644
--- a/debian/boca-autojudge.postinst
+++ b/debian/boca-autojudge.postinst
@@ -5,4 +5,9 @@ chmod 4555 /usr/bin/safeexec
chmod 700 /usr/sbin/boca-createjail
chmod 700 /usr/sbin/boca-autojudge
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
exit 0
diff --git a/debian/boca-common.postinst b/debian/boca-common.postinst
index 9492c78..3ff74f1 100644
--- a/debian/boca-common.postinst
+++ b/debian/boca-common.postinst
@@ -49,4 +49,9 @@ esac
chmod 600 /var/www/boca/src/private/conf.php
chown www-data:www-data /var/www/boca/src/private/conf.php
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
exit 0
diff --git a/debian/boca-db.postinst b/debian/boca-db.postinst
index 927c6a4..6154b81 100644
--- a/debian/boca-db.postinst
+++ b/debian/boca-db.postinst
@@ -73,4 +73,9 @@ esac
service postgresql restart || true
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
exit 0
diff --git a/debian/boca-submission-tools.postinst b/debian/boca-submission-tools.postinst
index 107ddf2..6b6e15c 100644
--- a/debian/boca-submission-tools.postinst
+++ b/debian/boca-submission-tools.postinst
@@ -13,3 +13,10 @@ for i in boca-submit-list boca-submit-oldlist; do
rm -f /usr/bin/$i || true
ln -s /usr/bin/boca-submit-run /usr/bin/$i
done
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/boca-web.postinst b/debian/boca-web.postinst
index 31fa7e7..108693e 100644
--- a/debian/boca-web.postinst
+++ b/debian/boca-web.postinst
@@ -20,4 +20,9 @@ service apache2 restart || true
#remember to reset possible stored password from debconf
db_reset boca-common/dbpassword || true
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
exit 0