summaryrefslogtreecommitdiff
path: root/databases/leofs/files/patch-leofs-adm
diff options
context:
space:
mode:
Diffstat (limited to 'databases/leofs/files/patch-leofs-adm')
-rw-r--r--databases/leofs/files/patch-leofs-adm144
1 files changed, 0 insertions, 144 deletions
diff --git a/databases/leofs/files/patch-leofs-adm b/databases/leofs/files/patch-leofs-adm
deleted file mode 100644
index 7ab95abb01e5..000000000000
--- a/databases/leofs/files/patch-leofs-adm
+++ /dev/null
@@ -1,144 +0,0 @@
---- leofs-adm.orig 2014-08-06 06:40:07.000000000 +0300
-+++ leofs-adm 2014-08-16 12:25:48.000000000 +0300
-@@ -37,8 +37,13 @@
- UNDERLINE='\033[4m'
-
- SCRIPT=`basename $0`
--IP="127.0.0.1"
--PORT=10010
-+
-+: ${LEOFS_ADM_CFG=$HOME/.${SCRIPT}rc}
-+
-+test -r "${LEOFS_ADM_CFG}" && . "${LEOFS_ADM_CFG}"
-+
-+: ${LEOFS_ADM_HOST=127.0.0.1}
-+: ${LEOFS_ADM_PORT=10010}
-
- STORAGE_NODE="<storage-node>"
- GATEWAY_NODE="<gateway-node>"
-@@ -626,76 +631,101 @@
- ## Usage of the script
- ##
- usage() {
-- echo "usage: ${bold}$SCRIPT${normal} [--help]"
-- echo " <command> <args>"
-- echo ""
-- echo " LeoFS commands are:"
-- echo " ${UNDERLINE}General Commands:${NONE}"
-- echo "$WHITESPACE version"
-+ echo -e "usage: ${bold}$SCRIPT${normal} [--help]"
-+ echo -e " ${bold}$SCRIPT${normal} [-h <host>] [-p <port>] <command> <args>"
-+ echo -e ""
-+ echo -e " LeoFS commands are:"
-+ echo -e " ${UNDERLINE}General Commands:${NONE}"
-+ echo -e "$WHITESPACE version"
- usage_status min
- usage_whereis min
-- echo ""
-- echo " ${UNDERLINE}Storage Operation:${NONE}"
-+ echo -e ""
-+ echo -e " ${UNDERLINE}Storage Operation:${NONE}"
- usage_detach min
- usage_suspend min
- usage_resume min
- usage_start min
- usage_rebalance min
-- echo ""
-- echo " ${UNDERLINE}Recover Commands:${NONE}"
-+ echo -e ""
-+ echo -e " ${UNDERLINE}Recover Commands:${NONE}"
- usage_recover_file min
- usage_recover_node min
- usage_recover_ring min
- usage_recover_cluster min
-- echo ""
-- echo " ${UNDERLINE}Compaction Commands:${NONE}"
-+ echo -e ""
-+ echo -e " ${UNDERLINE}Compaction Commands:${NONE}"
- usage_compact_start min
- usage_compact_suspend min
- usage_compact_resume min
- usage_compact_status min
- usage_du min
-- echo ""
-- echo " ${UNDERLINE}Gateway Operation:${NONE}"
-+ echo -e ""
-+ echo -e " ${UNDERLINE}Gateway Operation:${NONE}"
- usage_purge_cache min
- usage_remove_gateway min
-- echo ""
-- echo " ${UNDERLINE}Manager Maintenance:${NONE}"
-+ echo -e ""
-+ echo -e " ${UNDERLINE}Manager Maintenance:${NONE}"
- usage_backup_mnesia min
- usage_restore_mnesia min
- usage_update_managers min
- usage_dump_ring min
-- echo ""
-- echo " ${UNDERLINE}S3-related Commands:${NONE}"
-+ echo -e ""
-+ echo -e " ${UNDERLINE}S3-related Commands:${NONE}"
- usage_create_user min
- usage_delete_user min
- usage_get_users min
- usage_update_user_role min
- usage_update_user_password min
-- echo ""
-+ echo -e ""
- usage_add_endpoint min
- usage_delete_endpoint min
- usage_get_endpoints min
-- echo ""
-+ echo -e ""
- usage_add_bucket min
- usage_delete_bucket min
- usage_get_bucket min
- usage_get_buckets min
- usage_chown_bucket min
- usage_update_acl min
-- echo ""
-- echo " ${UNDERLINE}Multi Data Center Operation:${NONE}"
-+ echo -e ""
-+ echo -e " ${UNDERLINE}Multi Data Center Operation:${NONE}"
- usage_join_cluster min
- usage_remove_cluster min
- usage_cluster_status min
-- echo ""
-+ echo -e ""
- }
-
-
- ## Send a command to local manager
- send_command() {
-- echo "$@" | nc -C $IP $PORT
-+ case "$(uname)" in
-+ FreeBSD)
-+ echo "$@" | nc -N $LEOFS_ADM_HOST $LEOFS_ADM_PORT
-+ ;;
-+ *)
-+ echo "$@" | nc -C $LEOFS_ADM_HOST $LEOFS_ADM_PORT
-+ esac
- }
-
-+while test -n "$1"; do
-+ case "$1" in
-+ --help)
-+ usage | less -r
-+ exit 0
-+ ;;
-+ -h)
-+ LEOFS_ADM_HOST="$2"
-+ shift
-+ ;;
-+ -p)
-+ LEOFS_ADM_PORT="$2"
-+ shift
-+ ;;
-+ *)
-+ break
-+ esac
-+ shift
-+done
-
- case "$1" in
- version)