add default config if not exists

This commit is contained in:
cremesk 2019-07-22 01:44:07 +02:00
parent e862772e0b
commit 024ae2f284
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 1 additions and 0 deletions

1
bb.sh
View File

@ -1187,6 +1187,7 @@ do_main() {
# Do not change anything here. If you want to modify the code, edit do_main()
#
test -d ~/public_html/blog || mkdir -p ~/public_html/blog
test -f ~/public_html/blog/.config || cp /usr/local/bin/bb_user_config.tmpl ~/public_html/blog/.config
cd ~/public_html/blog
do_main "$@"