corrections to scripts

This commit is contained in:
2016-05-14 20:20:26 +01:00
parent 8b6f9f1d59
commit 0087f19c03
11 changed files with 6 additions and 4 deletions

2
bin/build Executable file → Normal file
View File

@@ -1 +1 @@
$DOCKER_HOME/bin/make $1 build $DOCKER_HOME/bin/make $1 build

0
bin/clean Executable file → Normal file
View File

0
bin/enter Executable file → Normal file
View File

0
bin/enter-bash Executable file → Normal file
View File

0
bin/killall Executable file → Normal file
View File

6
bin/make Executable file → Normal file
View File

@@ -6,10 +6,12 @@ if [ ! -e $FILE ]; then
include \$(DOCKER_HOME)/build/Makefile include \$(DOCKER_HOME)/build/Makefile
NAME = $1 NAME = $1
VERSION = latest VERSION = latest
build: $1 build: prepare $1
EOF EOF
fi fi
make -f $FILE $2 make -f $FILE build
CODE=$?
if [ ! -z ${DELETE+x} ]; then if [ ! -z ${DELETE+x} ]; then
rm $FILE rm $FILE
fi fi
exit $CODE

0
bin/pidenter Executable file → Normal file
View File

0
bin/purge Executable file → Normal file
View File

0
bin/run-bash Executable file → Normal file
View File

2
bin/ssh Executable file → Normal file
View File

@@ -7,7 +7,7 @@ if [ -n "$ID" ]; then
docker cp $ID:/opt/id_rsa . docker cp $ID:/opt/id_rsa .
fi fi
chmod 0600 id_rsa chmod 0600 id_rsa
eval "$COMMAND \"$ARGS\"" eval "$COMMAND $ARGS"
else else
echo "Container is not running." echo "Container is not running."
fi fi

0
bin/stopall Executable file → Normal file
View File