diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 69e436d..a80ed7a 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -19,9 +19,21 @@ jobs: uses: actions/checkout@v4 - name: Install lftp + shell: sh run: | - apt-get update - apt-get install -y lftp ca-certificates + if command -v lftp >/dev/null 2>&1; then + echo "✅ lftp bereits installiert" + elif command -v apk >/dev/null 2>&1; then + echo "📦 Installiere via apk" + apk add --no-cache lftp ca-certificates + elif command -v apt-get >/dev/null 2>&1; then + echo "📦 Installiere via apt-get" + apt-get update + apt-get install -y lftp ca-certificates + else + echo "❌ Kein unterstützter Paketmanager gefunden" + exit 1 + fi - name: Set environment run: |