82 |
|
|
83 |
[[ -n ${method} ]] || die "No method given" |
[[ -n ${method} ]] || die "No method given" |
84 |
|
|
85 |
|
# always create the STOREFRONT_STORES_DIR |
86 |
|
install -d "${STOREFRONT_STORES_DIR}" |
87 |
|
|
88 |
case "${method}" in |
case "${method}" in |
89 |
add) |
add) |
90 |
# requires name and store |
# requires name and store |
96 |
die "Only PNA Stores are allowed." |
die "Only PNA Stores are allowed." |
97 |
fi |
fi |
98 |
|
|
|
[ ! -d ${STOREFRONT_STORES_DIR} |
|
|
# get a proper name strore[id].conf |
|
|
|
|
99 |
store_name="$(normalize_store ${store_uri})" |
store_name="$(normalize_store ${store_uri})" |
100 |
config="${STOREFRONT_STORES_DIR}/${store_name}.conf" |
config="${STOREFRONT_STORES_DIR}/${store_name}.conf" |
101 |
CONFIG="${MROOT}/${config}" |
CONFIG="${MROOT}/${config}" |