diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-08-26 17:00:39 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-08-26 17:00:39 -0300 |
commit | 2dd7ba09177bf279d6517329439d7531982de25c (patch) | |
tree | 2b65863d7c93aeffc65d3686895375b24a731714 /src/bin/db-init | |
parent | cfd73e09fcc97d6fa005a4622f7663a727579606 (diff) |
update db-init and fix POOLS variables
Diffstat (limited to 'src/bin/db-init')
-rwxr-xr-x | src/bin/db-init | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/bin/db-init b/src/bin/db-init index 181e5bf..e63bf5a 100755 --- a/src/bin/db-init +++ b/src/bin/db-init @@ -3,8 +3,7 @@ CONFIG_DIR="$(dirname "$(readlink -e "$0")")/etc" -source "${CONFIG_DIR}/dbscripts.cfg" -source "${CONFIG_DIR}/dbscripts.d/db-functions" +source "${CONFIG_DIR}"/dbscripts{.d/{db-functions,main},}.cfg db-init-usage() { msg "Usage: %s [platform1 platform2 ... platformX]" "${0##*/}" @@ -20,7 +19,7 @@ for 'platform' in "${PLATFORMS[@]}"; do if [ "${_platform_name}" == "${platform}" ]; then source "${CONFIG_DIR}/dbscripts.d/${_platform_name}.cfg" - mkdir -p -- "${REPO_DIR}"/{"${PKG_POOL}","${SRC_POOL}"} "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}" + mkdir -p -- "${REPO_DIR}"/{"${PKG_MAIN_POOLS}","${SRC_MAIN_POOLS}"} "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}" else db-init-usage fi @@ -28,6 +27,8 @@ for 'platform' in "${PLATFORMS[@]}"; do else source "${CONFIG_DIR}/dbscripts.d/${platform}.cfg" - mkdir -p -- "${REPO_DIR}"/{"${PKG_POOL}","${SRC_POOL}"} "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}" + mkdir -p -- "${REPO_DIR}"/{"${PKG_MAIN_POOLS}","${SRC_MAIN_POOLS}"} "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}" fi done + +# "$(dirname "$(readlink -e "$0")")/db-repo-add" -p "${_platform}" "${PKG_REPOS[@]}" |