From 795cee5d0423ba4ba7606900b6211b0aa5c7f478 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Fri, 20 Mar 2020 17:32:39 -0400 Subject: [PATCH] Improvement to config handling --- .gitignore | 4 ++++ config => config.example | 0 streamdesktop | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .gitignore rename config => config.example (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ee5f7f8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +config +*.webm.bak +*.webm +*.log diff --git a/config b/config.example similarity index 100% rename from config rename to config.example diff --git a/streamdesktop b/streamdesktop index c1e5885..7e719e0 100755 --- a/streamdesktop +++ b/streamdesktop @@ -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 -- 2.25.1