Commit e9588842 authored by Yann DEGAT's avatar Yann DEGAT

Update bin scripts

parent 4b5b98f6
blackfish
\ No newline at end of file
......@@ -61,7 +61,7 @@ fi
if [[ "$print_opts" == 1 ]]; then
printf -- "-H %s --tlsverify --tlscacert %s --tlscert %s --tlskey %s" "$HOST" "$HOME/.blackfish/$STACK/ca.pem" "$HOME/.blackfish/$STACK/cert.pem" "$HOME/.blackfish/$STACK/key.pem"
else
DOCKER_API_VERSION=1.22 docker -H "$HOST" --tlsverify \
DOCKER_API_VERSION=1.23 docker -H "$HOST" --tlsverify \
--tlscacert "$HOME/.blackfish/$STACK/ca.pem" \
--tlscert "$HOME/.blackfish/$STACK/cert.pem" \
--tlskey "$HOME/.blackfish/$STACK/key.pem" \
......
#!/bin/sh
TARGET_FILE=$1
cd `dirname $TARGET_FILE`
TARGET_FILE=`basename $TARGET_FILE`
# Iterate down a (possible) chain of symlinks
while [ -L "$TARGET_FILE" ]
do
TARGET_FILE=`readlink $TARGET_FILE`
cd `dirname $TARGET_FILE`
TARGET_FILE=`basename $TARGET_FILE`
done
# Compute the canonicalized name by finding the physical path
# for the directory we're in and appending the target file.
PHYS_DIR=`pwd -P`
RESULT=$PHYS_DIR/$TARGET_FILE
echo $RESULT
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment