This commit is contained in:
qiaofeng1227 2023-09-26 15:17:42 +08:00
parent 7a3e6b7983
commit 0fe8ce6e6f
5 changed files with 6 additions and 3 deletions

View file

@ -7,6 +7,7 @@ RUN apt-get update && apt-get install -y curl jq
COPY ./config/initproxy.conf /data/nginx/proxy_host/
COPY ./s6/init_user/* /etc/s6-overlay/s6-rc.d/user/
RUN chmod -R 755 /etc/s6-overlay/s6-rc.d/user
# COPY ./s6/init_user/init_user.sh /app/init_user.sh
# RUN chmod +x /app/init_user.sh
# CMD ["/bin/sh", "-c", "/app/init_user.sh && tail -f /dev/null"]

View file

@ -50,4 +50,6 @@ echo "Save to credential"
json="{\"username\":\"$username\",\"password\":\"$password\"}"
echo "$json" > "$cred_path"
set -e
set -e
s6-svc -D /etc/s6-overlay/s6-rc.d/init_user

View file

@ -1,4 +1,3 @@
#!/bin/bash
bash /etc/s6-overlay/s6-rc.d/init_user/init_user.sh
exec s6-svc -D /etc/s6-overlay/s6-rc.d/init_user
exec /etc/s6-overlay/s6-rc.d/init_user/init_user.sh

View file

@ -0,0 +1 @@
onceshot

View file