new install/uninstall scripts
* new uninstall script * system install no longer supported * local install using local virtualenv and symbolic links in ~/.local/bin * --dev switch to allow developper mode with symlinks to git
This commit is contained in:
25
uninstall
Executable file
25
uninstall
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
srcdir=$(dirname $(readlink -f $0))
|
||||
venvdir=~/.local/lib/runon
|
||||
bindir=~/.local/bin
|
||||
configdir=~/.config/runon
|
||||
|
||||
if [ -e $venvdir/bin/runon ]; then
|
||||
echo "remove links from $bindir"
|
||||
find -L $bindir -samefile $bindir/runon -exec rm -v {} \;
|
||||
find -L $bindir -samefile $venvdir/bin/runon -exec rm -v {} \;
|
||||
fi
|
||||
|
||||
if [ -d $venvdir ]; then
|
||||
echo "remove virtualenv $venvdir"
|
||||
rm -rf $venvdir
|
||||
fi
|
||||
|
||||
if [ -e $configdir ]; then
|
||||
echo "remove configs"
|
||||
rm -vf $configdir/runon.default.conf
|
||||
rmdir -v $configdir || true
|
||||
fi
|
||||
|
||||
echo "done."
|
Reference in New Issue
Block a user