Update 01-init

This commit is contained in:
Myve 2024-07-19 06:36:07 +00:00
commit 1589f50882
4 changed files with 4 additions and 13 deletions

View file

@ -5,20 +5,11 @@ set -a
# Abort if an error is encountered # Abort if an error is encountered
set -e set -e
# SSH config
if [ -f ~/.ssh/id_ed25519 ]
then
chmod 0600 ~/.ssh/id_ed25519
fi
# Run all scripts in init folder # Run all scripts in init folder
for file in /app/init.d/*.sh for file in /app/init.d/*.sh
do do
/bin/bash -c ${file} >>/app/logs/$(echo ${file} | sed 's|/app/init.d/||;s|\.sh$||').log /bin/bash -c ${file} >>/app/logs/$(echo ${file} | sed 's|/app/init.d/||;s|\.sh$||').log
done done
# Read cli parameters
exec "${@}" &
# Monitor log # Monitor log
tail -f /app/logs/*.log tail -f /app/logs/*.log

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Create base directories # Create base directories
for dir in vnc config ssh for dir in vnc config ssh
do do
@ -6,4 +7,3 @@ do
done done
## OPTIONAL: More commands may be added below ## OPTIONAL: More commands may be added below

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Reformat path # Reformat proxy path
if [[ ${MYVNC_PROXYPATH} == "/" ]] if [[ ${MYVNC_PROXYPATH} == "/" ]]
then then
unset _MYVNC_PROXYPATH unset _MYVNC_PROXYPATH

View file

@ -3,6 +3,6 @@
# Optional buildtag, addpkg # Optional buildtag, addpkg
# addpkg=openssh \ # addpkg=openssh \
DOCKER_BUILDKIT=1 \ DOCKER_BUILDKIT=1 \
docker build ./. \ docker build . \
--build-arg addpkg=${addpkg:-""} \ --build-arg addpkg=${addpkg:-""} \
--tag ${buildtag:-alpine/base} --tag ${buildtag:-alpine/base}