31 |
--user) shift; user="$1" ;; |
--user) shift; user="$1" ;; |
32 |
--domain) shift; domain="$1" ;; |
--domain) shift; domain="$1" ;; |
33 |
--password) shift; password="$1" ;; |
--password) shift; password="$1" ;; |
34 |
|
--store-uri) shift; store_uri="$1" ;; |
35 |
esac |
esac |
36 |
shift |
shift |
37 |
done |
done |
45 |
# and session |
# and session |
46 |
[[ -n ${session} ]] || die "No session given" |
[[ -n ${session} ]] || die "No session given" |
47 |
|
|
48 |
|
# add store and regen user xml |
49 |
|
if [[ -n ${store_uri} ]] |
50 |
|
then |
51 |
|
${MCORE_LIBDIR}/storefront-store --add --store "${store_uri}" |
52 |
|
${MCORE_LIBDIR}/storefront-store --regen |
53 |
|
fi |
54 |
|
|
55 |
storefront_starter="${STOREFRONTDIR}/${name}.sh" |
storefront_starter="${STOREFRONTDIR}/${name}.sh" |
56 |
CONFIG="${MROOT}/${storefront_starter}" |
CONFIG="${MROOT}/${storefront_starter}" |
57 |
clearconfig |
clearconfig |
58 |
|
|
59 |
addconfig '#!/bin/bash' |
addconfig '#!/bin/bash' |
60 |
addconfig "${MCORE_LIBDIR}/storefront-resolver --launch --user '${user}' --password '${password}' --domain '${domain}' --app '${session}'" |
addconfig "${MCORE_LIBDIR}/storefront-resolver --launch --user '${user}' --password '${password}' --domain '${domain}' --app '${session}' --store '${store_uri}'" |
61 |
chmod +x "${storefront_starter}" |
chmod +x "${storefront_starter}" |
62 |
|
|
63 |
if is_provided fluxbox |
if is_provided fluxbox |