Remove tahoelafs more cleanly

This commit is contained in:
Bob Mottram 2017-04-12 14:56:04 +01:00
parent af0c8c02fa
commit 58923e0ab1
1 changed files with 4 additions and 0 deletions

View File

@ -272,6 +272,9 @@ function install_interactive_tahoelafs {
}
function upgrade_tahoelafs {
if [ ! -d /home/tahoelafs/tahoelafs ]; then
return
fi
systemctl stop tahoelafs
function_check set_repo_commit
set_repo_commit /home/tahoelafs/tahoelafs "tahoelafs commit" "$TAHOELAFS_COMMIT" $TAHOELAFS_REPO
@ -388,6 +391,7 @@ function remove_tahoelafs {
if [ -f /etc/nginx/.htpasswd-tahoelafs ]; then
shred -zu /etc/nginx/.htpasswd-tahoelafs
fi
remove_completion_param "tahoelafs commit"
systemctl reload tor
}