Skip to content

Commit

Permalink
feat: add more functionality to the install scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhobson authored Oct 22, 2024
1 parent 63106f7 commit 098802a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/Sergen.Main/Resources/Install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,31 @@ yes | cp -rf ../* /opt/Sergen
# Reload systemd services and start the service
systemctl daemon-reload
systemctl start Sergen.service

# Check if apt package manager exists on the system
if command -v apt > /dev/null; then
echo "apt found, checking for podman and dotnet6."

# Update package lists
apt update

# Check if podman is installed
if ! dpkg -l | grep -q podman; then
echo "podman not found, installing."
apt install -y podman
else
echo "podman is already installed, skipping installation."
fi

# Check if dotnet6 is installed
if ! dpkg -l | grep -q dotnet6; then
echo "dotnet6 not found, installing."
apt install -y dotnet6
else
echo "dotnet6 is already installed, skipping installation."
fi

echo "podman and dotnet6 installation checks complete."
else
echo "apt not found. Skipping podman and dotnet6 installation."
fi

0 comments on commit 098802a

Please sign in to comment.