ResumeGen / run.sh
shivam9980's picture
Upload 5 files
25a055e verified
#!/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