@ -10,7 +10,7 @@ RUN mkdir /root/.ssh
COPY ./id_rsa /root/.ssh/
RUN chmod 700 /root/.ssh && chmod 600 /root/.ssh/*
COPY entrypoint.sh /
COPY entrypoint.sh generators /
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
@ -14,7 +14,7 @@ while [ "$1" ]; do
;;
"-t" | "--type")
GENERATOR_NAME="$2"
GENERATOR_SCRIPT="generators/$GENERATOR_NAME.sh"
GENERATOR_SCRIPT="/generators/$GENERATOR_NAME.sh"
if [ ! -f "$GENERATOR_SCRIPT" ]; then
echo "type de documentation inconnue, veuillez entrer un générateur valide" >&2
exit 1