ajout generateurs dans l'image doker (oubli)

pr
Override-6 2 years ago
parent 4716b04935
commit 7acd5bcbc5

@ -10,7 +10,7 @@ RUN mkdir /root/.ssh
COPY ./id_rsa /root/.ssh/ COPY ./id_rsa /root/.ssh/
RUN chmod 700 /root/.ssh && chmod 600 /root/.ssh/* RUN chmod 700 /root/.ssh && chmod 600 /root/.ssh/*
COPY entrypoint.sh / COPY entrypoint.sh generators /
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ] ENTRYPOINT [ "/entrypoint.sh" ]

@ -14,7 +14,7 @@ while [ "$1" ]; do
;; ;;
"-t" | "--type") "-t" | "--type")
GENERATOR_NAME="$2" GENERATOR_NAME="$2"
GENERATOR_SCRIPT="generators/$GENERATOR_NAME.sh" GENERATOR_SCRIPT="/generators/$GENERATOR_NAME.sh"
if [ ! -f "$GENERATOR_SCRIPT" ]; then if [ ! -f "$GENERATOR_SCRIPT" ]; then
echo "type de documentation inconnue, veuillez entrer un générateur valide" >&2 echo "type de documentation inconnue, veuillez entrer un générateur valide" >&2
exit 1 exit 1

Loading…
Cancel
Save