Usage display text alignments
This commit is contained in:
@@ -45,11 +45,10 @@ Run the script with below option to see all available options:-
|
|||||||
root@host:~# bash <(wget -q https://raw.githubusercontent.com/pratiktri/server_init_harden/master/init-linux-harden.sh -O -) --help
|
root@host:~# bash <(wget -q https://raw.githubusercontent.com/pratiktri/server_init_harden/master/init-linux-harden.sh -O -) --help
|
||||||
|
|
||||||
Usage: sudo bash /dev/fd/63 [-u|--username username] [-r|--resetrootpwd] [--defaultsourcelist]
|
Usage: sudo bash /dev/fd/63 [-u|--username username] [-r|--resetrootpwd] [--defaultsourcelist]
|
||||||
-u, --username Username for your server (If omitted script will choose an username for you)
|
-u, --username Username for your server (If omitted script will choose an username for you)
|
||||||
-r, --resetrootpwd Reset current root password
|
-r, --resetrootpwd Reset current root password
|
||||||
-hide, --hide-credentials Credentials will hidden from the screen and can ONLY be found in the logfile (tail -n 20 /tmp/logfilename)
|
-hide, --hide-credentials Credentials will hidden from the screen and can ONLY be found in the logfile (tail -n 20 /tmp/logfilename)
|
||||||
-d, --defaultsourcelist Updates /etc/apt/sources.list to download software from debian.org
|
-d, --defaultsourcelist Updates /etc/apt/sources.list to download software from debian.org
|
||||||
NOTE - If you fail to update system after using it, you need to manually reset it. This script keeps a backup in the same folder
|
|
||||||
|
|
||||||
Example: bash ./linux_init_harden.sh --username myuseraccount --resetrootpwd
|
Example: bash ./linux_init_harden.sh --username myuseraccount --resetrootpwd
|
||||||
|
|
||||||
|
|||||||
@@ -32,11 +32,10 @@ function usage() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Usage: sudo bash $0 [-u|--username username] [-r|--resetrootpwd] [--defaultsourcelist]"
|
echo "Usage: sudo bash $0 [-u|--username username] [-r|--resetrootpwd] [--defaultsourcelist]"
|
||||||
echo " -u, --username Username for your server (If omitted script will choose an username for you)"
|
echo " -u, --username Username for your server (If omitted script will choose an username for you)"
|
||||||
echo " -r, --resetrootpwd Reset current root password"
|
echo " -r, --resetrootpwd Reset current root password"
|
||||||
echo " -hide, --hide-credentials Credentials will hidden from the screen and can ONLY be found in the logfile (tail -n 20 logfile)"
|
echo " -hide, --hide-credentials Credentials will hidden from the screen and can ONLY be found in the logfile (tail -n 20 logfile)"
|
||||||
echo " -d, --defaultsourcelist Updates /etc/apt/sources.list to download software from debian.org"
|
echo " -d, --defaultsourcelist Updates /etc/apt/sources.list to download software from debian.org"
|
||||||
echo " NOTE - If you fail to update system after using it, you need to manually reset it. This script keeps a backup in the same folder"
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Example: bash ./$SCRIPT_NAME.sh --username myuseraccount --resetrootpwd"
|
echo "Example: bash ./$SCRIPT_NAME.sh --username myuseraccount --resetrootpwd"
|
||||||
|
|||||||
Reference in New Issue
Block a user