paddleocr-processor / startup.sh
mbuck17's picture
Create startup.sh
f83db29 verified
raw
history blame contribute delete
555 Bytes
#!/bin/bash
# Download and install libssl1.1 from Ubuntu 20.04 repos
echo "Installing libssl1.1 compatibility..."
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb || apt-get install -f -y
# Create symlinks if needed
ln -sf /usr/lib/x86_64-linux-gnu/libssl.so.1.1 /usr/lib/x86_64-linux-gnu/libssl.so.1.1 2>/dev/null || true
ln -sf /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 2>/dev/null || true
# Run the app
python app.py