summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-04-23 20:56:10 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-04-23 20:56:10 +0200
commit5b6d09ad29e4f1695689bd6b24d681c4f926ea4b (patch)
tree9be94a09514595a81ed551d9165c1e34c898d4d3
parentdd5b2c5e6c1b39c151ed9f6689f97dde32b71a6e (diff)
Configured host can be a URL
-rwxr-xr-xbin/deluser.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/deluser.sh b/bin/deluser.sh
index 84c8446ec..f12ec9032 100755
--- a/bin/deluser.sh
+++ b/bin/deluser.sh
@@ -58,6 +58,12 @@ if (empty($args['host'])) {
else {
_die("Specify a host name", true);
}
+
+ // host can be a URL like tls://192.168.12.44
+ $host_url = parse_url($args['host']);
+ if ($host_url['host']) {
+ $args['host'] = $host_url['host'];
+ }
}
// connect to DB