Spaces:
Runtime error
Runtime error
File size: 885 Bytes
25a055e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
#!/bin/bash
echo "Starting ResumeGen backend setup and execution..."
# Make sure we're in the backend directory
cd "$(dirname "$0")"
echo "Step 1: Running install script..."
# Check if we're running as root or if sudo is not available
if [[ $EUID -eq 0 ]] || ! command -v sudo &> /dev/null; then
echo "Detected root access or no sudo available - setting ROOT_ENVIRONMENT"
export ROOT_ENVIRONMENT=true
fi
# Execute the install script from the parent scripts directory
bash scripts/install-latex-packages.sh
if [ $? -eq 0 ]; then
echo "β Install script completed successfully"
else
echo "β Install script failed"
exit 1
fi
echo "Step 2: Starting Python application..."
# Run the main Python application
python3 main.py
if [ $? -eq 0 ]; then
echo "β Python application completed successfully"
else
echo "β Python application failed"
exit 1
fi |