diff options
author | Yehonal <yehonal.azeroth@gmail.com> | 2018-07-15 22:40:49 +0200 |
---|---|---|
committer | Yehonal <yehonal.azeroth@gmail.com> | 2018-07-15 22:51:17 +0200 |
commit | 85388901cf6a69659569ad751767fd7108b25a3c (patch) | |
tree | a004b01dfd378841c2ee473023313ade212118d7 /apps/bash_shared/common.sh | |
parent | 07a451e1402cf8a7c24cf6196d541d304f5dcff2 (diff) |
Rewrite of bash system
+ Implemented new dashboard menu
+ some fixes for db_assembler
+ new module installation process with version check via json files
+ some fixes to modules installer
+ implemented simple crossplatform worldserver and authserver restarters
+ new compiler script
+ client data downloader (beta)
+ various other fixes
Diffstat (limited to 'apps/bash_shared/common.sh')
-rw-r--r-- | apps/bash_shared/common.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/apps/bash_shared/common.sh b/apps/bash_shared/common.sh new file mode 100644 index 0000000000..7b42858057 --- /dev/null +++ b/apps/bash_shared/common.sh @@ -0,0 +1,23 @@ +function registerHooks() { hwc_event_register_hooks "$@"; } +function runHooks() { hwc_event_run_hooks "$@"; } + +source "$AC_PATH_CONF/config.sh.dist" # "hack" to avoid missing conf variables + +if [ -f "$AC_PATH_CONF/config.sh" ]; then + source "$AC_PATH_CONF/config.sh" # should overwrite previous +else + echo "NOTICE: file <$AC_PATH_CONF/config.sh> has not been found, you should create and configure it." +fi + +# +# Load modules +# + +for entry in "$AC_PATH_MODULES/"*/include.sh +do + if [ -e $entry ]; then + source $entry + fi +done + +ACORE_VERSION=$("$AC_PATH_DEPS/jsonpath/JSONPath.sh" -f $AC_PATH_ROOT/acore.json -b '$.version')
\ No newline at end of file |