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
set -e
# SSH config
if [ -f ~/.ssh/id_ed25519 ]
then
chmod 0600 ~/.ssh/id_ed25519
fi
# Run all scripts in init folder
for file in /app/init.d/*.sh
do
/bin/bash -c ${file} >>/app/logs/$(echo ${file} | sed 's|/app/init.d/||;s|\.sh$||').log
done
# Read cli parameters
exec "${@}" &
# Monitor log
tail -f /app/logs/*.log

View file

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

View file

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

View file

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