Add Ubuntu-Slim image definition (#13423)

Add ubuntu-slim image definition
This commit is contained in:
Mike Tesch
2025-12-12 15:03:34 -05:00
committed by GitHub
parent 0e731c96a0
commit eee0743413
43 changed files with 1974 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ replace_etc_environment_variable() {
local variable_name=$1
local variable_value=$2
# modify /etc/environemnt in place by replacing a string that begins with variable_name
# modify /etc/environment in place by replacing a string that begins with variable_name
sudo sed -i -e "s%^${variable_name}=.*$%${variable_name}=${variable_value}%" /etc/environment
}
@@ -81,7 +81,7 @@ append_etc_environment_path() {
# ie MANPATH, INFOPATH, LD_*, etc. In the current implementation the values from /etc/evironments
# replace the values of the current environment
reload_etc_environment() {
# add `export ` to every variable of /etc/environemnt except PATH and eval the result shell script
# add `export ` to every variable of /etc/environment except PATH and eval the result shell script
eval $(grep -v '^PATH=' /etc/environment | sed -e 's%^%export %')
# handle PATH specially
etc_path=$(get_etc_environment_variable PATH)