Skip to content

Commit 59c9b70

Browse files
committed
adapto por ŝanĝo de afido-ssh-retpordo
1 parent f8ebf89 commit 59c9b70

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

Dockerfile

+1-5
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,4 @@ USER root
6060
#EXPOSE 22
6161

6262
ENTRYPOINT ["docker-entrypoint.sh"]
63-
# vd. https://stackoverflow.com/questions/40454470/how-can-i-use-a-variable-inside-a-dockerfile-cmd
64-
#CMD ["/usr/sbin/sshd", "-D"]
65-
# transdono de la medivariablo por la retpordo funkcias nur tra ŝelo
66-
#CMD ["sh","-c","exec /usr/sbin/sshd -d -p ${AFIDO_PORT}"]
67-
CMD ["sh","-c","exec /usr/sbin/sshd -D -p ${AFIDO_PORT}"]
63+
CMD ["/usr/sbin/sshd","-D","-p","${AFIDO_PORT}"]

bin/docker-entrypoint.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ setup_smtp.sh
1313
setup_var.sh
1414
setup_dict.sh
1515

16-
echo "AFIDO_PORT=${AFIDO_PORT}"
16+
# echo "AFIDO_PORT=${AFIDO_PORT}"
17+
# anstataŭigu medivariablojn en $@
18+
eval "set -- $@"
1719
echo "lanĉo: $@"
1820

19-
exec "$@"
21+
exec "$@"

0 commit comments

Comments
 (0)