revert redirection change, change approach
This commit is contained in:
@@ -118,7 +118,7 @@ prnt()
|
|||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
echo $echoopt -e "${IWhite}$(date $DATEFORMAT)${DEFAULTFG} ${heads} $@" >&2
|
echo $echoopt -e "${IWhite}$(date $DATEFORMAT)${DEFAULTFG} ${heads} $@"
|
||||||
|
|
||||||
unset heads echoopt
|
unset heads echoopt
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,7 +105,6 @@ fetch_secret()
|
|||||||
scheme="${ref%%:*}"
|
scheme="${ref%%:*}"
|
||||||
identifier="${ref#*:}"
|
identifier="${ref#*:}"
|
||||||
fi
|
fi
|
||||||
prnt I "Fetching secret from $scheme, identified with \"$identifier\"..."
|
|
||||||
|
|
||||||
func="get_${scheme}_secret"
|
func="get_${scheme}_secret"
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
# higher priority.
|
# higher priority.
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
export VER_conf_ceph="1.0.1"
|
export VER_conf_ceph="1.0.2"
|
||||||
export DEP_conf_ceph=""
|
export DEP_conf_ceph=""
|
||||||
|
|
||||||
conf_ceph()
|
conf_ceph()
|
||||||
@@ -66,6 +66,8 @@ conf_ceph()
|
|||||||
tag_file /etc/fstab
|
tag_file /etc/fstab
|
||||||
echo >> /etc/fstab
|
echo >> /etc/fstab
|
||||||
local srvlist=${CEPH_SRV_NAMES/ /,}
|
local srvlist=${CEPH_SRV_NAMES/ /,}
|
||||||
|
|
||||||
|
prnt I "Fetching secret $CEPH_SECRET..."
|
||||||
local secret
|
local secret
|
||||||
secret=$(fetch_secret "$CEPH_SECRET")
|
secret=$(fetch_secret "$CEPH_SECRET")
|
||||||
if ! grep -q "$srvlist" /etc/fstab; then
|
if ! grep -q "$srvlist" /etc/fstab; then
|
||||||
|
|||||||
Reference in New Issue
Block a user