Improvement to config handling
authorRuben Rodriguez <ruben@gnu.org>
Fri, 20 Mar 2020 21:32:39 +0000 (17:32 -0400)
committerRuben Rodriguez <ruben@gnu.org>
Fri, 20 Mar 2020 21:32:39 +0000 (17:32 -0400)
.gitignore [new file with mode: 0644]
config.example [moved from config with 100% similarity]
streamdesktop

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..ee5f7f8
--- /dev/null
@@ -0,0 +1,4 @@
+config
+*.webm.bak
+*.webm
+*.log
similarity index 100%
rename from config
rename to config.example
index c1e58859763df360183da54073021e80550c78cc..7e719e095d377a3ea1b00206f7c948c9a06bb4fc 100755 (executable)
@@ -31,8 +31,8 @@ fi
 # Server side dependencies: icecast2
 
 . config
-if [ "$PASSWORD" = "hackme" ]; then
-  echo Edit ./config to set up your server, password, and other parameters
+if ! [ -f config ]; then
+  echo Copy ./config.example into ./config, and edit it to set up your server, password, and other parameters
   exit 1
 fi