summaryrefslogtreecommitdiff
path: root/debian/vyatta-op.postinst.in
blob: c8f1303201e05e8076253ca6a415a5599a1a3420 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@

# add symlinks for sudo
ln -sf /opt/vyatta/bin/vyatta-show-interfaces.pl ${bindir}/sudo-users/vyatta-show-interfaces.pl
ln -sf /opt/vyatta/sbin/vyatta-interfaces.pl ${bindir}/sudo-users/vyatta-interfaces.pl

# rm symlink for sendmail that was added by ssmtp package
rm -f /usr/sbin/sendmail

# handle renamed file (not automatically deleted since it was "conffile")
rm -f /etc/bash_completion.d/10vyatta-op