Skip to content

Commit 225ea49

Browse files
committed
refactor: change extra scripts, and scripts
1 parent e6c8ad9 commit 225ea49

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

apps/alpine/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ RUN \
7070
&& rm -rf /tmp/*
7171

7272
VOLUME ["/config"]
73-
RUN mkdir -p /extra-scripts \
74-
&& chown -R notroot:notroot /extra-scripts \
75-
&& chmod -R 775 /extra-scripts
76-
COPY ./apps/alpine/scripts /scripts
73+
RUN mkdir -p /extra_scripts \
74+
&& chown -R notroot:notroot /extra_scripts \
75+
&& chmod -R 775 /extra_scripts
76+
COPY ./apps/alpine/scripts /prom_scripts
7777
COPY --chmod=0755 apps/alpine/base-entrypoint.sh /base-entrypoint.sh
7878
COPY --chmod=0755 apps/alpine/promknight-entrypoint.sh /promknight-entrypoint.sh
7979
COPY --from=builder /go/bin/envsubst /usr/local/bin/envsubst

apps/alpine/base-entrypoint.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ set -e
44

55
echo "Based on work by funky penguin @elfhosted/containers"
66

7-
source "/scripts/wait-for-vpn.sh"
8-
source "/scripts/wait-for-urls.sh"
9-
source "/scripts/wait-for-mounts.sh"
10-
source "/scripts/umask.sh"
11-
source "/scripts/extra-scripts.sh"
7+
source "/prom_scripts/wait-for-vpn.sh"
8+
source "/prom_scripts/wait-for-urls.sh"
9+
source "/prom_scripts/wait-for-mounts.sh"
10+
source "/prom_scripts/umask.sh"
11+
source "/prom_scripts/extra-scripts.sh"
1212

1313
exec /promknight-entrypoint.sh
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
# Execute any scripts found in /extra-scripts
4-
for SCRIPT in $(ls /extra-scripts); do
3+
# Execute any scripts found in /extra_scripts
4+
for SCRIPT in $(ls /extra_scripts); do
55
bash -c $SCRIPT
66
done

apps/ubuntu/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ RUN \
104104
ENV LANG en_US.UTF-8
105105

106106
VOLUME ["/config"]
107-
RUN mkdir -p /extra-scripts \
108-
&& chown -R notroot:notroot /extra-scripts \
109-
&& chmod -R 775 /extra-scripts
110-
COPY --chmod=755 ./apps/ubuntu/scripts /scripts
107+
RUN mkdir -p /extra_scripts \
108+
&& chown -R notroot:notroot /extra_scripts \
109+
&& chmod -R 775 /extra_scripts
110+
COPY --chmod=755 ./apps/ubuntu/scripts /prom_scripts
111111
COPY --from=builder /go/bin/envsubst /usr/local/bin/envsubst
112112
COPY --chmod=0755 apps/ubuntu/base-entrypoint.sh /base-entrypoint.sh
113113
COPY --chmod=0755 apps/ubuntu/promknight-entrypoint.sh /promknight-entrypoint.sh

apps/ubuntu/base-entrypoint.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ set -e
44

55
echo "Based on work by funky penguin @elfhosted/containers"
66

7-
source "/scripts/wait-for-vpn.sh"
8-
source "/scripts/wait-for-urls.sh"
9-
source "/scripts/wait-for-mounts.sh"
10-
source "/scripts/umask.sh"
11-
source "/scripts/extra-scripts.sh"
7+
source "/prom_scripts/wait-for-vpn.sh"
8+
source "/prom_scripts/wait-for-urls.sh"
9+
source "/prom_scripts/wait-for-mounts.sh"
10+
source "/prom_scripts/umask.sh"
11+
source "/prom_scripts/extra-scripts.sh"
1212

1313
exec /promknight-entrypoint.sh
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

33
# Execute any scripts found in /extra-scripts
4-
for SCRIPT in $(ls /extra-scripts); do
4+
for SCRIPT in $(ls /extra_scripts); do
55
bash -c $SCRIPT
66
done

0 commit comments

Comments
 (0)