🗃️ Committing everything that changed 🗃️
All checks were successful
release-tag / release-image (push) Successful in 3m17s

rootfs/root/docker/setup/02-packages.sh
rootfs/usr/local/etc/docker/init.d/00-enclosed.sh
This commit is contained in:
casjay 2024-09-12 20:26:51 -04:00
parent 7295b7b2db
commit 8246104b83
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145
2 changed files with 10 additions and 4 deletions

View File

@ -24,10 +24,17 @@ set -o pipefail
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Set env variables # Set env variables
exitCode=0 exitCode=0
node_bin="$(type -P nodejs)"
enclosed_bin="/usr/bin/enclosed"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Predifined actions # Predifined actions
[ -d "/etc/nginx" ] && rm -Rf /etc/nginx/* if [ -d "/etc/nginx" ]: then
rm -Rf /etc/nginx/*
fi
if [ -n "$node_bin" ]; then
copy "$node_bin" "$enclosed_bin"
chmod -f 755 "$enclosed_bin"
fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Main script # Main script

View File

@ -245,8 +245,7 @@ __update_conf_files() {
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# custom commands # custom commands
copy "$(type -P node)" "/usr/local/bin/enclosed"
chmod -Rf 755 "/usr/local/bin/enclosed"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# replace variables # replace variables
# __replace "" "" "$CONF_DIR/enclosed.conf" # __replace "" "" "$CONF_DIR/enclosed.conf"