Files
entropy/services/auto-builder_examples/pre.sh
T
2011-08-01 14:42:16 +02:00

10 lines
239 B
Bash
Executable File

#!/bin/sh
echo "matter pre hook"
echo "BUILDER_REPOSITORY_ID = ${BUILDER_REPOSITORY_ID}"
is_mounted=$(mount | cut -d" " -f 3 | grep "/proc")
if [ -z "${is_mounted}" ]; then
echo "mounting /proc, not mounted"
mount -t proc proc /proc
fi