23 lines
647 B
Bash
Executable File
23 lines
647 B
Bash
Executable File
#!/bin/bash
|
|
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
|
# Modèle de script utilisant rundk pour lancer un traitement dans un container
|
|
# RUNDK est le chemin relatif vers rundk à partir du chemin du script
|
|
RUNDK=sbin/rundk
|
|
|
|
MYDIR="$(dirname -- "$0")"; MYNAME="$(basename -- "$0")"
|
|
if [ -z "$_RUNDK_IN_DOCKER" ]; then
|
|
"$MYDIR/$RUNDK" --bs --ue --ci || exit 1
|
|
exec "$MYDIR/$RUNDK" "$0" "$@"
|
|
fi
|
|
source "$MYDIR/$RUNDK" || exit 1
|
|
source "$PROJDIR/$VENDORDIR/nulib/php/load.sh" || exit 1
|
|
|
|
args=(
|
|
"description"
|
|
#"usage"
|
|
)
|
|
parse_args "$@"; set -- "${args[@]}"
|
|
|
|
echo "je tourne dans un container..."
|
|
sleep 1000
|