mirror of https://git.envs.net/envs/bashblog.git
add default config if not exists
This commit is contained in:
parent
e862772e0b
commit
024ae2f284
1
bb.sh
1
bb.sh
|
@ -1187,6 +1187,7 @@ do_main() {
|
||||||
# Do not change anything here. If you want to modify the code, edit 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 -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
|
cd ~/public_html/blog
|
||||||
do_main "$@"
|
do_main "$@"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue