|
@ -8,8 +8,9 @@ CONFIGFILE="$LOCATION/config.json" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
monujo:code_init() { |
|
|
monujo:code_init() { |
|
|
|
|
|
local version="$1" |
|
|
if [ -e "$LOCATION/.version" ] && \ |
|
|
if [ -e "$LOCATION/.version" ] && \ |
|
|
[ "$(cat "$LOCATION/.version")" == "$VERSION" ]; then |
|
|
|
|
|
|
|
|
[ "$(cat "$LOCATION/.version")" == "$version" ]; then |
|
|
return 0 |
|
|
return 0 |
|
|
fi |
|
|
fi |
|
|
[ -d "$LOCATION" ] && rm -rf "$LOCATION" |
|
|
[ -d "$LOCATION" ] && rm -rf "$LOCATION" |
|
@ -24,7 +25,7 @@ monujo:code_init() { |
|
|
tar xjf file.tar.bz2 && |
|
|
tar xjf file.tar.bz2 && |
|
|
rm file.tar.bz2 && |
|
|
rm file.tar.bz2 && |
|
|
chown root:root "$LOCATION" -R && |
|
|
chown root:root "$LOCATION" -R && |
|
|
echo "$VERSION" > "$LOCATION/.version" |
|
|
|
|
|
|
|
|
echo "$version" > "$LOCATION/.version" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export MONUJO_OPTIONS=( |
|
|
export MONUJO_OPTIONS=( |
|
@ -33,6 +34,7 @@ export MONUJO_OPTIONS=( |
|
|
map-url:string |
|
|
map-url:string |
|
|
local-password-retention-time:numeric |
|
|
local-password-retention-time:numeric |
|
|
theme:struct\* |
|
|
theme:struct\* |
|
|
|
|
|
version:ignore |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
export MONUJO_OPTIONS_CONCAT=" ${MONUJO_OPTIONS[*]} " |
|
|
export MONUJO_OPTIONS_CONCAT=" ${MONUJO_OPTIONS[*]} " |
|
@ -58,6 +60,9 @@ monujo:json-make() { |
|
|
key=$(e "$key" | shyaml get-value) |
|
|
key=$(e "$key" | shyaml get-value) |
|
|
ytype=$(e "$val" | shyaml get-type) |
|
|
ytype=$(e "$val" | shyaml get-type) |
|
|
case "$MONUJO_OPTIONS_CONCAT" in |
|
|
case "$MONUJO_OPTIONS_CONCAT" in |
|
|
|
|
|
*" ${key}:ignore "*) |
|
|
|
|
|
continue |
|
|
|
|
|
;; |
|
|
*" ${key}:bool "*) |
|
|
*" ${key}:bool "*) |
|
|
val=$(e "$val" | shyaml get-value) |
|
|
val=$(e "$val" | shyaml get-value) |
|
|
case "${val,,}" in |
|
|
case "${val,,}" in |
|
|