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