18 lines
562 B
Makefile
18 lines
562 B
Makefile
.ONESHELL:
|
|
SHELL = /usr/bin/bash
|
|
MAKEFLAGS += --no-print-directory
|
|
.SILENT:
|
|
|
|
devinit:
|
|
if [[ ! -e config.py ]]; then
|
|
cp config_example/config.j2 config.py
|
|
chmod 600 config.py
|
|
sed -i "/^DEBUG.*=.*/c\DEBUG = True" config.py
|
|
sed -i "/^LOG_HOSTNAME.*=.*/c\LOG_HOSTNAME = \"localhost\"" config.py
|
|
sed -i "/^LOG_LEVEL.*=.*/c\LOG_LEVEL = logging.WARNING" config.py
|
|
sed -i 's/{{ smart_srv_brain_hostname }}/localhost/' config.py
|
|
sed -i 's/"{{ smart_srv_brain_username }}"/None/' config.py
|
|
sed -i 's/"{{ smart_srv_brain_password }}"/None/' config.py
|
|
fi
|
|
|