Update lxcpost.sh
This commit is contained in:
+4
-6
@@ -1,15 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#Below is a script designed to guide you through the post-procedure setup for LXC. This script includes prompts for user inputs such as usernames, passwords, and IP addresses.
|
# Install Unattended-Upgrades Package
|
||||||
|
|
||||||
## Install Unattended-Upgrades Package
|
|
||||||
|
|
||||||
# Update package list and install unattended-upgrades
|
# Update package list and install unattended-upgrades
|
||||||
echo "Updating package list and installing unattended-upgrades..."
|
echo "Updating package list and installing unattended-upgrades..."
|
||||||
apt update
|
apt update
|
||||||
apt install unattended-upgrades -y
|
apt install unattended-upgrades -y
|
||||||
|
|
||||||
## Edit Configuration
|
# Edit Configuration
|
||||||
|
|
||||||
# Open the configuration file for editing
|
# Open the configuration file for editing
|
||||||
echo "Opening configuration file for editing..."
|
echo "Opening configuration file for editing..."
|
||||||
@@ -35,7 +33,7 @@ echo "Save the file by pressing [Ctrl+O] and exit with [Ctrl+X]."
|
|||||||
echo "Enabling automatic updates..."
|
echo "Enabling automatic updates..."
|
||||||
dpkg-reconfigure --priority=low unattended-upgrades
|
dpkg-reconfigure --priority=low unattended-upgrades
|
||||||
|
|
||||||
## Tailscale Installation
|
# Tailscale Installation
|
||||||
|
|
||||||
# Install Tailscale
|
# Install Tailscale
|
||||||
echo "Installing Tailscale..."
|
echo "Installing Tailscale..."
|
||||||
@@ -49,7 +47,7 @@ tailscale up
|
|||||||
echo "Enabling autoupdate for Tailscale..."
|
echo "Enabling autoupdate for Tailscale..."
|
||||||
tailscale set --auto-update
|
tailscale set --auto-update
|
||||||
|
|
||||||
## Add CIFS Folder to LXC
|
# Add CIFS Folder to LXC
|
||||||
|
|
||||||
# Install cifs-utils
|
# Install cifs-utils
|
||||||
echo "Installing cifs-utils..."
|
echo "Installing cifs-utils..."
|
||||||
|
|||||||
Reference in New Issue
Block a user