Files
bind/rootfs/root/docker/setup/02-packages.sh
T

47 lines
1.8 KiB
Bash
Raw Normal View History

2024-08-27 09:44:41 -04:00
#!/usr/bin/env bash
# shellcheck shell=bash
# - - - - - - - - - - - - - - - - - - - - - - - - -
##@Version : 202605051438-git
2024-08-27 09:44:41 -04:00
# @@Author : CasjaysDev
# @@Contact : CasjaysDev <docker-admin@casjaysdev.pro>
# @@License : MIT
# @@Copyright : Copyright 2026 CasjaysDev
# @@Created : Tue May 5 02:38:04 PM EDT 2026
2024-08-27 09:44:41 -04:00
# @@File : 02-packages.sh
# @@Description : script to run packages
# @@Changelog : newScript
# @@TODO : Refactor code
# @@Other : N/A
# @@Resource : N/A
# @@Terminal App : yes
# @@sudo/root : yes
# @@Template : templates/dockerfiles/init_scripts/02-packages.sh
# - - - - - - - - - - - - - - - - - - - - - - - - -
# shellcheck disable=SC1001,SC1003,SC2001,SC2003,SC2016,SC2031,SC2090,SC2115,SC2120,SC2155,SC2199,SC2229,SC2317,SC2329
# - - - - - - - - - - - - - - - - - - - - - - - - -
2024-08-27 09:44:41 -04:00
# Set bash options
set -o pipefail
[ "$DEBUGGER" = "on" ] && echo "Enabling debugging" && set -x$DEBUGGER_OPTIONS
# - - - - - - - - - - - - - - - - - - - - - - - - -
2024-08-27 09:44:41 -04:00
# Set env variables
exitCode=0
# - - - - - - - - - - - - - - - - - - - - - - - - -
# Predefined actions
2024-08-27 09:44:41 -04:00
# - - - - - - - - - - - - - - - - - - - - - - - - -
2024-08-27 09:44:41 -04:00
# Main script
2026-05-12 20:05:33 -04:00
# wipe package-installed bind defaults so the rootfs ones in /tmp/etc/bind/
# are the only files that end up under /etc/bind/ after 03-files.sh runs.
2024-08-27 12:44:47 -04:00
rm -Rf "/etc/bind"/* "/var/bind"/*
mkdir -p "/etc/bind/keys" "/var/bind/zones" "/var/bind/primary" "/var/bind/secondary" "/var/bind/stats" "/var/bind/dynamic"
# - - - - - - - - - - - - - - - - - - - - - - - - -
2024-08-27 09:44:41 -04:00
# Set the exit code
#exitCode=$?
# - - - - - - - - - - - - - - - - - - - - - - - - -
2024-08-27 09:44:41 -04:00
exit $exitCode
# - - - - - - - - - - - - - - - - - - - - - - - - -
# ex: ts=2 sw=2 et filetype=sh
# - - - - - - - - - - - - - - - - - - - - - - - - -