asd
This commit is contained in:
WickedYoda committed 2024-05-09 16:48:21 -05:00
1 parent 02f17ed05f
commit 1e8dd7939e
3 files changed
+4 -2

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ sudo apt install git wget -y
# installing cockpit
sudo apt install cockpit -y
sudo apt install python -y
# Check if /home/traver/public-setupfiles exists
if [ -d "/home/traver/public-setupfiles" ]; then
+1
View File
@@ -17,6 +17,7 @@ sudo apt install git wget -y
# installing cockpit
sudo apt install cockpit -y
sudo apt install python -y
# Removing ufw
sudo apt remove ufw -y
+2 -2
View File
@@ -5,14 +5,14 @@ import subprocess
subprocess.run(["sudo", "apt", "update", "-y"])
# Check if git is installedd
# Check if git is installed
try:
subprocess.run(["git", "--version"], check=True)
except subprocess.CalledProcessError:
# Install git
subprocess.run(["sudo", "apt-get", "install", "git", "-y"])
# Specify the remote repository URLL
# Specify the remote repository URL
remote_repo = "https://github.com/wickedyoda/public-setupfiles.git"
# Specify the local file path