From: Ruben Rodriguez Date: Fri, 20 Mar 2020 21:32:39 +0000 (-0400) Subject: Improvement to config handling X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=795cee5d0423ba4ba7606900b6211b0aa5c7f478;p=streamdesktop.git Improvement to config handling --- 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