creaded correct docker image creation file

This commit is contained in:
DigiServer Developer
2025-11-17 22:03:52 +02:00
parent 2db0033bc0
commit c16383ed75
16 changed files with 1025 additions and 33 deletions

48
install_libreoffice.sh Executable file
View File

@@ -0,0 +1,48 @@
#!/bin/bash
# LibreOffice installation script for DigiServer v2
# This script installs LibreOffice for PPTX to image conversion
set -e
echo "======================================"
echo "LibreOffice Installation Script"
echo "======================================"
echo ""
# Check if running as root
if [ "$EUID" -ne 0 ]; then
echo "❌ This script must be run as root or with sudo"
exit 1
fi
# Check if already installed
if command -v libreoffice &> /dev/null; then
VERSION=$(libreoffice --version 2>/dev/null || echo "Unknown")
echo "✅ LibreOffice is already installed: $VERSION"
exit 0
fi
echo "📦 Installing LibreOffice..."
echo ""
# Update package list
echo "Updating package list..."
apt-get update -qq
# Install LibreOffice
echo "Installing LibreOffice (this may take a few minutes)..."
apt-get install -y libreoffice libreoffice-impress
# Verify installation
if command -v libreoffice &> /dev/null; then
VERSION=$(libreoffice --version 2>/dev/null || echo "Installed")
echo ""
echo "✅ LibreOffice successfully installed: $VERSION"
echo ""
echo "You can now upload and convert PowerPoint presentations (PPTX files)."
exit 0
else
echo ""
echo "❌ LibreOffice installation failed"
exit 1
fi