mirror of
https://github.com/buildplan/du_setup.git
synced 2025-12-29 16:14:59 +00:00
make tailscale config optional
make tailscale config optional
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
# Debian & Ubuntu Server Setup & Hardening Script
|
# Debian & Ubuntu Server Setup & Hardening Script
|
||||||
|
|
||||||
**Version:** v0.55
|
**Version:** v0.56
|
||||||
|
|
||||||
**Last Updated:** 2025-07-02
|
**Last Updated:** 2025-07-04
|
||||||
|
|
||||||
**Compatible With:**
|
**Compatible With:**
|
||||||
|
|
||||||
@@ -75,12 +75,12 @@ sha256sum du_setup.sh
|
|||||||
|
|
||||||
Compare the output hash to the one below. They must match exactly.
|
Compare the output hash to the one below. They must match exactly.
|
||||||
|
|
||||||
`e798fae8512483bfa1e3b26950cc99516c87e43ff95ee0e600c8d71ba8ccde91`
|
`68ffd12617a41c8933b275f468dcb116a888fc6f431d1bd8eee6a5c1bc9afb7c`
|
||||||
|
|
||||||
Or echo the hash to check, it should output: `du_setup.sh: OK`
|
Or echo the hash to check, it should output: `du_setup.sh: OK`
|
||||||
|
|
||||||
```
|
```
|
||||||
echo e798fae8512483bfa1e3b26950cc99516c87e43ff95ee0e600c8d71ba8ccde91 du_setup.sh | sha256sum --check -
|
echo 68ffd12617a41c8933b275f468dcb116a888fc6f431d1bd8eee6a5c1bc9afb7c du_setup.sh | sha256sum --check -
|
||||||
```
|
```
|
||||||
|
|
||||||
### 3\. Run the Script
|
### 3\. Run the Script
|
||||||
|
|||||||
12
du_setup.sh
12
du_setup.sh
@@ -1,8 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Debian 12 and Ubuntu Server Hardening Interactive Script
|
# Debian 12 and Ubuntu Server Hardening Interactive Script
|
||||||
# Version: 0.55 | 2025-07-02
|
# Version: 0.56 | 2025-07-04
|
||||||
# Changelog:
|
# Changelog:
|
||||||
|
# - v0.56: Make tailscale config optional
|
||||||
# - v0.55: Improving setup_user() - ssh-keygen replaced the option to skip ssh key
|
# - v0.55: Improving setup_user() - ssh-keygen replaced the option to skip ssh key
|
||||||
# - v0.54: Fix for rollback_ssh_changes() - more reliable on newer Ubuntu
|
# - v0.54: Fix for rollback_ssh_changes() - more reliable on newer Ubuntu
|
||||||
# Better error message if script is executed by non-root or without sudo
|
# Better error message if script is executed by non-root or without sudo
|
||||||
@@ -108,7 +109,7 @@ print_header() {
|
|||||||
echo -e "${CYAN}╔═════════════════════════════════════════════════════════════════╗${NC}"
|
echo -e "${CYAN}╔═════════════════════════════════════════════════════════════════╗${NC}"
|
||||||
echo -e "${CYAN}║ ║${NC}"
|
echo -e "${CYAN}║ ║${NC}"
|
||||||
echo -e "${CYAN}║ DEBIAN/UBUNTU SERVER SETUP AND HARDENING SCRIPT ║${NC}"
|
echo -e "${CYAN}║ DEBIAN/UBUNTU SERVER SETUP AND HARDENING SCRIPT ║${NC}"
|
||||||
echo -e "${CYAN}║ v0.55 | 2025-07-02 ║${NC}"
|
echo -e "${CYAN}║ v0.56 | 2025-07-03 ║${NC}"
|
||||||
echo -e "${CYAN}║ ║${NC}"
|
echo -e "${CYAN}║ ║${NC}"
|
||||||
echo -e "${CYAN}╚═════════════════════════════════════════════════════════════════╝${NC}"
|
echo -e "${CYAN}╚═════════════════════════════════════════════════════════════════╝${NC}"
|
||||||
echo
|
echo
|
||||||
@@ -1207,6 +1208,13 @@ install_tailscale() {
|
|||||||
echo "$TS_IPS" > /tmp/tailscale_ips.txt
|
echo "$TS_IPS" > /tmp/tailscale_ips.txt
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! confirm "Configure Tailscale now?"; then
|
||||||
|
print_info "You can configure Tailscale later by running: sudo tailscale up"
|
||||||
|
print_info "If you are using a custom Tailscale server, use: sudo tailscale up --login-server=<your_server_url>"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
print_info "Configuring Tailscale connection..."
|
print_info "Configuring Tailscale connection..."
|
||||||
echo -e "${CYAN}Choose Tailscale connection method:${NC}"
|
echo -e "${CYAN}Choose Tailscale connection method:${NC}"
|
||||||
echo -e " 1) Standard Tailscale (requires pre-auth key from https://login.tailscale.com/admin)"
|
echo -e " 1) Standard Tailscale (requires pre-auth key from https://login.tailscale.com/admin)"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
e798fae8512483bfa1e3b26950cc99516c87e43ff95ee0e600c8d71ba8ccde91 du_setup.sh
|
68ffd12617a41c8933b275f468dcb116a888fc6f431d1bd8eee6a5c1bc9afb7c du_setup.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user