Skip to content

Commit

Permalink
Write database details to correct file
Browse files Browse the repository at this point in the history
Currently we're writing to `${raintale_conf}` which is not declared and printing that we're writing the database details to `${settings_file}` but it looks like we should actually be writing to `${hypercane_conf}`.
  • Loading branch information
ato authored Dec 17, 2021
1 parent 290ef40 commit 4d1a74e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hypercane-gui/set-hypercane-database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ fi
settings_file=${WOOEY_DIR}/hypercane_with_wooey/settings/user_settings.py
hypercane_conf=/etc/hypercane.conf

echo "writing database information to ${settings_file}"
echo "writing database information to ${hypercane_conf}"

MDB_line=`grep HC_CACHE_STORAGE ${settings_file}`

cat >> ${raintale_conf} <<- EOF
cat >> ${hypercane_conf} <<- EOF
${MDB_line}
DATABASE_NAME="${DBNAME}"
DATABASE_PORT="${DBPORT}"
Expand Down

0 comments on commit 4d1a74e

Please sign in to comment.