rename ubuntu files, make entrypoints conditional

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-10-29 15:03:20 -04:00
parent 0e7565666e
commit 93b13af8ab
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C
3 changed files with 11 additions and 4 deletions

View File

@ -6,11 +6,11 @@ WORKDIR /root
RUN apt-get update
RUN apt-get install -y nfs-kernel-server krb5-kdc krb5-admin-server nfs-common bash iproute2 iputils-ping net-tools
COPY ./entrypoint.sh .
COPY ./entrypoint-ubuntu.sh .
COPY ./init.sh .
RUN chmod +x ./entrypoint.sh && chmod +x ./init.sh
RUN chmod +x ./entrypoint-ubuntu.sh && chmod +x ./init.sh
RUN ls
EXPOSE 2049 88 749 750 111 666 892
CMD ["./init.sh"]
CMD ["./init.sh", "ubuntu"]

View File

@ -1,2 +1,9 @@
#!/bin/bash
exec bash -xc ./entrypoint.sh 2>&1 | tee /root/stuff.log
ENTRY="./entrypoint.sh"
if [ "$1" == "ubuntu" ]; then
ENTRY="./entrypoint-ubuntu.sh"
fi
exec bash -xc $ENTRY.sh 2>&1 | tee /root/stuff.log