Cleanup scripts
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
# RHEL Management Scripts
|
|
||||||
@@ -53,5 +53,5 @@ script-deploy-manual() {
|
|||||||
# Allow script to be safely sourced
|
# Allow script to be safely sourced
|
||||||
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
||||||
script-deploy-manual "$@"
|
script-deploy-manual "$@"
|
||||||
exit $?
|
exit
|
||||||
fi
|
fi
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Common functions for the lab scripts
|
# Common functions
|
||||||
# Copyright 2021-2025 Bryan C. Roessler
|
# Copyright 2021-2025 Bryan C. Roessler
|
||||||
# Licensed under the Apache License, Version 2.0
|
# Licensed under the Apache License, Version 2.0
|
||||||
|
|
||||||
|
|||||||
@@ -4,9 +4,9 @@
|
|||||||
# Licensed under the Apache License, Version 2.0
|
# Licensed under the Apache License, Version 2.0
|
||||||
p="${BASH_SOURCE[0]%/*}"; [[ -r $p/script-functions ]] && . "$p"/script-functions || exit 1
|
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
|
case $# in
|
||||||
0) prompt user; prompt password ;;
|
0) prompt user; prompt password ;;
|
||||||
|
|||||||
@@ -4,9 +4,9 @@
|
|||||||
# Licensed under the Apache License, Version 2.0
|
# Licensed under the Apache License, Version 2.0
|
||||||
p="${BASH_SOURCE[0]%/*}"; [[ -r $p/script-functions ]] && . "$p"/script-functions || exit 1
|
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
|
if [[ $# -eq 1 ]]; then
|
||||||
user="$1"
|
user="$1"
|
||||||
|
|||||||
@@ -4,9 +4,9 @@
|
|||||||
# Licensed under the Apache License, Version 2.0
|
# Licensed under the Apache License, Version 2.0
|
||||||
p="${BASH_SOURCE[0]%/*}"; [[ -r $p/script-functions ]] && . "$p"/script-functions || exit 1
|
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
|
if [[ $# -eq 1 ]]; then
|
||||||
ip_address="$1"
|
ip_address="$1"
|
||||||
|
|||||||
Reference in New Issue
Block a user