2023-12-04 22:23:28 +01:00
|
|
|
#!/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"
|
2023-12-04 22:39:30 +01:00
|
|
|
rm -vf $configdir/runon.default.yaml
|
2023-12-04 22:23:28 +01:00
|
|
|
rmdir -v $configdir || true
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "done."
|