read update_reporter.config from ~/.config
diff --git a/.gitignore b/.gitignore
index c3ada51..6a3417b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1 @@
/out/
-update_reporter.config
diff --git a/update_reporter.sh b/update_reporter.sh
index 94bed0c..a296d64 100755
--- a/update_reporter.sh
+++ b/update_reporter.sh
@@ -4,7 +4,13 @@
echo "$0 <path_to_file_containing_release_names>"
}
-source update_reporter.config
+if [[ -f ~/.config/update_reporter.config ]]; then
+ source ~/.config/update_reporter.config
+else
+ echo "Please provide a configuration file at ~/.config/update_reporter.config. A sample file is provided in this repository."
+ exit 1
+fi
+
if [[ -z "${APACHE_USER}" ]]; then
echo "Please set the APACHE_USER variable in the update_reporter.config file."
exit 1