Spaces:
Sleeping
Sleeping
Create startup.sh
Browse files- startup.sh +13 -0
startup.sh
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Download and install libssl1.1 from Ubuntu 20.04 repos
|
| 4 |
+
echo "Installing libssl1.1 compatibility..."
|
| 5 |
+
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
|
| 6 |
+
dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb || apt-get install -f -y
|
| 7 |
+
|
| 8 |
+
# Create symlinks if needed
|
| 9 |
+
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
|
| 10 |
+
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
|
| 11 |
+
|
| 12 |
+
# Run the app
|
| 13 |
+
python app.py
|