feat: add ability to clear global domains

This commit is contained in:
Jose Diaz-Gonzalez
2019-05-13 03:03:53 -04:00
parent 948d507909
commit 287f383f6c
4 changed files with 28 additions and 0 deletions

View File

@@ -176,6 +176,14 @@ domains_add_global() {
done
}
domains_clear_global() {
declare desc="remove all domains"
local GLOBAL_VHOST_PATH="$DOKKU_ROOT/VHOST"
rm "$GLOBAL_VHOST_PATH"
touch "$GLOBAL_VHOST_PATH"
}
domains_remove_global() {
declare desc="remove list of domains"
local GLOBAL_VHOST_PATH="$DOKKU_ROOT/VHOST"