Remove tahoelafs more cleanly
This commit is contained in:
parent
af0c8c02fa
commit
58923e0ab1
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue