mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-26 02:55:54 +00:00
Update Guardian installation and update scripts to use example docker-compose.yml and remove unnecessary comments
This commit is contained in:
@@ -21,7 +21,6 @@ $STD apt-get install -y \
|
||||
lsb-release
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
# Install Docker
|
||||
msg_info "Installing Docker"
|
||||
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
@@ -30,28 +29,21 @@ $STD apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plu
|
||||
systemctl enable --now docker
|
||||
msg_ok "Installed Docker"
|
||||
|
||||
# Setup Guardian
|
||||
msg_info "Setting up Guardian"
|
||||
mkdir -p /opt/Guardian
|
||||
cd /opt/Guardian
|
||||
|
||||
# Download docker-compose.yml from repository
|
||||
RELEASE=$(curl -fsSL https://api.github.com/repos/HydroshieldMKII/Guardian/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||
curl -fsSL -o docker-compose.yml "https://raw.githubusercontent.com/HydroshieldMKII/Guardian/main/docker-compose.example.yml"
|
||||
|
||||
# Create data directory for persistent storage
|
||||
mkdir -p data
|
||||
|
||||
echo "${RELEASE}" >/opt/Guardian_version.txt
|
||||
msg_ok "Setup Guardian"
|
||||
|
||||
# Start Guardian with Docker Compose
|
||||
msg_info "Starting Guardian"
|
||||
cd /opt/Guardian
|
||||
docker compose up -d
|
||||
msg_ok "Started Guardian"
|
||||
|
||||
# Create systemd service to manage Docker Compose
|
||||
msg_info "Creating Guardian Service"
|
||||
cat <<EOF >/etc/systemd/system/guardian.service
|
||||
[Unit]
|
||||
|
||||
Reference in New Issue
Block a user