tahoe-lafs/misc/build_helpers/osx/scripts/preinstall
Ramakrishnan Muthukrishnan e92a9774fa OS-X package: add a preinstall script and copy the manpage into /etc/manpaths.d.
The preinstall script detects previous installation and removes it.

Author: Ramakrishnan Muthukrishnan <ram@leastauthority.com>
2015-09-03 15:18:08 +01:00

13 lines
229 B
Bash
Executable File

#!/bin/bash
if [ -d /Applications/tahoe.app ]; then
rm -r /Applications/tahoe.app
fi
if [ -f /etc/paths.d/tahoe ]; then
rm /etc/paths.d/tahoe
fi
if [ -f /etc/manpaths.d/tahoe.1 ]; then
rm /etc/manpaths.d/tahoe.1
fi