Cleanup scripts

This commit is contained in:
2025-06-12 01:20:44 -04:00
parent 5e80dc91b1
commit 8d6dd209dd
6 changed files with 8 additions and 9 deletions

View File

@@ -1 +0,0 @@
# RHEL Management Scripts

View File

@@ -53,5 +53,5 @@ script-deploy-manual() {
# Allow script to be safely sourced
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
script-deploy-manual "$@"
exit $?
exit
fi

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Common functions for the lab scripts
# Common functions
# Copyright 2021-2025 Bryan C. Roessler
# Licensed under the Apache License, Version 2.0

View File

@@ -4,9 +4,9 @@
# Licensed under the Apache License, Version 2.0
p="${BASH_SOURCE[0]%/*}"; [[ -r $p/script-functions ]] && . "$p"/script-functions || exit 1
is_root
echo "Usage: sudo $0 [username] [password]"
echo "Usage: $0 [username] [password]"
is_root
case $# in
0) prompt user; prompt password ;;

View File

@@ -4,9 +4,9 @@
# Licensed under the Apache License, Version 2.0
p="${BASH_SOURCE[0]%/*}"; [[ -r $p/script-functions ]] && . "$p"/script-functions || exit 1
is_root
echo "Usage: sudo $0 [username]"
echo "This script supports one optional argument, a username"
is_root
if [[ $# -eq 1 ]]; then
user="$1"

View File

@@ -4,9 +4,9 @@
# Licensed under the Apache License, Version 2.0
p="${BASH_SOURCE[0]%/*}"; [[ -r $p/script-functions ]] && . "$p"/script-functions || exit 1
is_root
echo "Usage: sudo $0 [ip_address]"
echo "This script supports one optional argument, an IP address"
is_root
if [[ $# -eq 1 ]]; then
ip_address="$1"