Making the process slightly more noob proof, make guide more descriptive
This commit is contained in:
parent
25bd635c4e
commit
c9f52319a0
|
@ -169,8 +169,10 @@ system_update() {
|
||||||
|
|
||||||
# Function to run additional setup
|
# Function to run additional setup
|
||||||
run_additional_setup() {
|
run_additional_setup() {
|
||||||
if prompt_yes_no "Do you want to run additional setup scripts?"; then
|
if prompt_yes_no "Do you want to run program setups? (e.g., Nginx, Certbot)"; then
|
||||||
SCRIPT_DIR=$(dirname "$0")
|
SCRIPT_DIR=$(dirname "$0")
|
||||||
|
log "Making extensions executable..."
|
||||||
|
chmod -R +x "$SCRIPT_DIR/extensions"
|
||||||
if [[ -f "$SCRIPT_DIR/extender.sh" ]]; then
|
if [[ -f "$SCRIPT_DIR/extender.sh" ]]; then
|
||||||
if [[ ! -x "$SCRIPT_DIR/extender.sh" ]]; then
|
if [[ ! -x "$SCRIPT_DIR/extender.sh" ]]; then
|
||||||
log "Making extender.sh executable"
|
log "Making extender.sh executable"
|
||||||
|
@ -242,7 +244,7 @@ if ! prompt_yes_no "Is this correct?"; then
|
||||||
log "Please enter the correct OS and package manager:"
|
log "Please enter the correct OS and package manager:"
|
||||||
read -r OS PKG_MANAGER
|
read -r OS PKG_MANAGER
|
||||||
if [[ $PKG_MANAGER != "apt" && $PKG_MANAGER != "yum" ]]; then
|
if [[ $PKG_MANAGER != "apt" && $PKG_MANAGER != "yum" ]]; then
|
||||||
log "Please enter the command to update the package list (e.g., 'apt update' or 'yum update'):"
|
log "Please enter the command to update the package list (e.g., 'apt update && apt upgrade' or 'yum update'):"
|
||||||
read -r UPDATE_CMD
|
read -r UPDATE_CMD
|
||||||
log "Please enter the command to install a package (e.g., 'apt install -y' or 'yum install -y'):"
|
log "Please enter the command to install a package (e.g., 'apt install -y' or 'yum install -y'):"
|
||||||
read -r INSTALL_CMD
|
read -r INSTALL_CMD
|
||||||
|
|
Loading…
Reference in New Issue
Block a user