Spaces:
Sleeping
Sleeping
Commit
·
e2fd471
1
Parent(s):
b6d0007
compress els_cache,db fix
Browse files
app.py
CHANGED
|
@@ -2,8 +2,10 @@ import logging
|
|
| 2 |
import os
|
| 3 |
import subprocess
|
| 4 |
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
| 7 |
|
| 8 |
logger = logging.getLogger(__name__)
|
| 9 |
logging.basicConfig(level=logging.INFO)
|
|
|
|
| 2 |
import os
|
| 3 |
import subprocess
|
| 4 |
|
| 5 |
+
try:
|
| 6 |
+
result = subprocess.run(['bash', 'install.sh'], check=True)
|
| 7 |
+
except subprocess.CalledProcessError as e:
|
| 8 |
+
print(f"The install script failed with return code {e.returncode}")
|
| 9 |
|
| 10 |
logger = logging.getLogger(__name__)
|
| 11 |
logging.basicConfig(level=logging.INFO)
|