diff --git a/deploy.sh b/deploy.sh index a9e790a..a1898b2 100755 --- a/deploy.sh +++ b/deploy.sh @@ -99,3 +99,29 @@ else echo " jrq (for query wrapper)" fi fi + +# Create ~/.jrqrc template if it doesn't exist +if [ ! -f "${HOME}/.jrqrc" ]; then + echo "Creating ~/.jrqrc config template..." + cat > "${HOME}/.jrqrc" <<'EOF' +# jrq configuration +# Uncomment and fill in the values below + +# JDBC connection URL (required) +# Examples: +# AS/400: jdbc:as400://hostname +# PostgreSQL: jdbc:postgresql://hostname:5432/dbname +# SQL Server: jdbc:sqlserver://hostname:1433;databaseName=mydb +#JR_URL="" + +# Database credentials (required) +#JR_USER="" +#JR_PASS="" + +# Output format: csv or tsv (default: csv) +#JR_FORMAT="csv" +EOF + echo "Edit ~/.jrqrc to add your connection details before using jrq" +else + echo "~/.jrqrc already exists, skipping template creation" +fi