diff --git a/ubuntu-install.sh b/ubuntu-install.sh index 37ff552..aebb137 100644 --- a/ubuntu-install.sh +++ b/ubuntu-install.sh @@ -67,8 +67,15 @@ REPO_URL="https://gitlab.com/trbc-dev/eoy-pdf-sortandmerge.git" log_info "Cloning application repository..." if command -v git &> /dev/null; then sudo apt install -y git - git clone "$REPO_URL" . - git checkout web-app + if [[ -d ".git" ]]; then + log_info "Repository already exists, pulling latest changes..." + git pull origin web-app + git checkout web-app + else + log_info "Cloning fresh repository..." + git clone "$REPO_URL" . + git checkout web-app + fi else log_warning "Git not available. Please manually download and extract the application files to $APP_DIR" exit 1