colors from template

This commit is contained in:
ville rantanen
2018-07-01 21:26:59 +03:00
parent 99fa595cd4
commit 3d35abbb50
4 changed files with 82 additions and 35 deletions

23
create_config.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
set -x
test -f .env || cp env.example .env
test -f data/config.json || cp data/config.json.example data/config.json
test -f data/shares.json || cp data/shares.json.example data/shares.json
test -f code/notifier.py || touch code/notifier.py
test -f code/static/css/colors.css || {
echo '
:root {
--background-light-color: #FDF2E9;
--background-dark-color: #FAE5D3;
--text-color: #0E6251;
--border-color: #0E6251;
}
' > code/static/css/colors.css
}
test -f code/static/css/user.css || touch code/static/css/user.css
set +x
echo Now edit data/config.json
echo See README.md