mirror of https://git.envs.net/envs/bashblog.git
add default config if not exists
This commit is contained in:
parent
d6dec07ae3
commit
240b017f31
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()
|
||||
#
|
||||
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 "$@"
|
||||
|
||||
|
|
Loading…
Reference in New Issue