use bash based on env, instead of hard coding location

This commit is contained in:
2025-04-25 16:39:01 -04:00
parent 57edee63fd
commit 7e49787329
44 changed files with 52 additions and 44 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
#!/bin/bash
#!/usr/bin/env bash
# configure basic settings, will prompt for input
# setup symlinks, if not installed in users bin directory
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
read -p "Add docker to apt sources and install docker? [y/N]: " response
case $response in
+2 -1
View File
@@ -1,4 +1,5 @@
#!/bin/bash
#!/usr/bin/env bash
# install common software, will prompt before each step
#echo "----- Use nginx straight from nginx.org -------------"
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
echo "----- Disable IPv6 privacy settings? in sysctl -------"
read -p 'if using as a IPv6 enabled server, you probably want to turn that off? [y/N]: ' fix_tempaddr
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# return to where we were when we started
STARTED_IN=`pwd`
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
echo "----- Switch to secure ssh conf ---------------------"
read -p 'Install the secure "sshd_config" file? [y/N]: ' secure_ssh
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
echo 'Enter the desired new port for ssh to use, leave blank to abort.'
read -p 'change ssh to operate on a different port then normal? [<new-port-number>]: ' change_port
+2 -1
View File
@@ -1,4 +1,5 @@
#!/bin/bash
#!/usr/bin/env bash
# make it easy for sudo calls to have access to key scripts
# setup symlinks, if not installed in users bin directory
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
LOCATION=`realpath "$0"`
LOCATION=`dirname "${LOCATION}"`