35 |
addconfig '<StoreCache>' |
addconfig '<StoreCache>' |
36 |
if [[ -L ${STOREFRONT_DIR}/default-store ]] |
if [[ -L ${STOREFRONT_DIR}/default-store ]] |
37 |
then |
then |
38 |
store=$(source ${STOREFRONT_DIR}/default-store; echo "${STORE}") |
store=$(source ${STOREFRONT_DIR}/default-store; echo "${STORE}" | tr '[A-Z]' '[a-z]') |
39 |
addconfig " <DefaultStore>${store}</DefaultStore>" |
addconfig " <DefaultStore>${store}</DefaultStore>" |
40 |
else |
else |
41 |
# use the first one which gets found |
# use the first one which gets found |
42 |
for config in $(NOCOLORS=1 list_files_in_directory ${STOREFRONT_STORES_DIR}) |
for config in $(NOCOLORS=1 list_files_in_directory ${STOREFRONT_STORES_DIR}) |
43 |
do |
do |
44 |
store=$(source ${STOREFRONT_STORES_DIR}/${config}; echo "${STORE}") |
store=$(source ${STOREFRONT_STORES_DIR}/${config}; echo "${STORE}" | tr '[A-Z]' '[a-z]') |
45 |
if [[ -n ${store} ]] |
if [[ -n ${store} ]] |
46 |
then |
then |
47 |
addconfig " <DefaultStore>${store}</DefaultStore>" |
addconfig " <DefaultStore>${store}</DefaultStore>" |
58 |
addconfig ' <VisibleStores>' |
addconfig ' <VisibleStores>' |
59 |
for config in $(NOCOLORS=1 list_files_in_directory ${STOREFRONT_STORES_DIR}) |
for config in $(NOCOLORS=1 list_files_in_directory ${STOREFRONT_STORES_DIR}) |
60 |
do |
do |
61 |
store=$(source ${STOREFRONT_STORES_DIR}/${config}; echo "${STORE}") |
store=$(source ${STOREFRONT_STORES_DIR}/${config}; echo "${STORE}" | tr '[A-Z]' '[a-z]') |
62 |
if [[ -n ${store} ]] |
if [[ -n ${store} ]] |
63 |
then |
then |
64 |
addconfig " <Store name=\"${store}\" type=\"PNA\">" |
addconfig " <Store name=\"${store}\" type=\"PNA\">" |