updating libre install

This commit is contained in:
DigiServer Developer
2025-11-20 19:44:07 +02:00
parent 4d411b645d
commit efb63f2b3f
3 changed files with 3 additions and 8 deletions

View File

@@ -41,6 +41,7 @@ EXPOSE 5000
# Create a non-root user and grant sudo access for dependency installation
RUN useradd -m -u 1000 appuser && \
chown -R appuser:appuser /app /docker-entrypoint.sh && \
echo "appuser ALL=(ALL) NOPASSWD: /usr/bin/apt-get" >> /etc/sudoers && \
echo "appuser ALL=(ALL) NOPASSWD: /app/install_libreoffice.sh" >> /etc/sudoers && \
echo "appuser ALL=(ALL) NOPASSWD: /app/install_emoji_fonts.sh" >> /etc/sudoers && \
chmod +x /app/install_libreoffice.sh /app/install_emoji_fonts.sh

View File

@@ -3,8 +3,8 @@
# Install emoji fonts for Raspberry Pi
echo "Installing emoji font support for Raspberry Pi..."
sudo apt-get update
sudo apt-get install -y fonts-noto-color-emoji fonts-noto-emoji
apt-get update -qq
apt-get install -y fonts-noto-color-emoji fonts-noto-emoji
echo "✅ Emoji fonts installed!"
echo "Please restart your browser to see the changes."

View File

@@ -9,12 +9,6 @@ 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")