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

#Make sure wrapper is suid and others are not readable
chmod 700 /usr/sbin/boca-fixes
chmod 700 /usr/sbin/boca-auth-runs
chmod 700 /usr/sbin/boca-outmanage
chmod 700 /usr/sbin/boca-submit-log
chmod 700 /usr/bin/boca-submit-run-*
chmod 4555 /usr/bin/boca-submit-run-root-wrapper

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