From 8596f93d4125764a2059ae6bf86694708f82fbe8 Mon Sep 17 00:00:00 2001 From: nginn Date: Tue, 29 Dec 2015 16:18:52 +0300 Subject: [PATCH] updated postinst/postremove actions --- installers/deb_package_build/debian/postinst | 4 +++- installers/deb_package_build/debian/postrm | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 installers/deb_package_build/debian/postrm diff --git a/installers/deb_package_build/debian/postinst b/installers/deb_package_build/debian/postinst index c5378f98..e79adab9 100644 --- a/installers/deb_package_build/debian/postinst +++ b/installers/deb_package_build/debian/postinst @@ -1,3 +1,5 @@ #!/bin/bash -ln -s /usr/bench/bin/bench /usr/bin/bench +if [ ! -h /usr/bin/bench ]; then + ln -s /usr/bench/bin/bench /usr/bin/bench +fi diff --git a/installers/deb_package_build/debian/postrm b/installers/deb_package_build/debian/postrm new file mode 100644 index 00000000..1603d98b --- /dev/null +++ b/installers/deb_package_build/debian/postrm @@ -0,0 +1,5 @@ +#!/bin/bash + +if [ ! -h /usr/bin/bench ]; then + rm -rf /usr/bin/bench +fi