Skip to content

Commit

Permalink
Merge pull request #1771 from rern/UPDATE
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
rern authored Sep 14, 2024
2 parents 99388f1 + a2e14a3 commit 1aa27e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ alias=r1

. /srv/http/bash/settings/addons.sh

# 20240913
# 20240914
file=$dirsystem/volumeboot
if [[ -e $file ]]; then
echo "\
Expand Down
6 changes: 2 additions & 4 deletions srv/http/bash/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,9 @@ data2json() {
[[ $page == status.sh ]] && page='"page" : false' || page='"page" : "'$page'"'
json="\
{
$page
$1
$page$1
}"
# "k": > "k": false # "k":} > "k": false} # [, > [false, # ,, > ,false, # ,] > ,false]
json=$( data2jsonPatch "$json" )
json=$( data2jsonPatch "$json" ) # "k": > "k": false # "k":} > "k": false} # [, > [false, # ,, > ,false, # ,] > ,false]
if [[ $2 ]]; then
pushData refresh "$json"
else
Expand Down
4 changes: 3 additions & 1 deletion srv/http/bash/settings/features-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ if [[ -e $dirsystem/volumelimit ]]; then
volumelimit=true
volumelimitconf=$( conf2json $dirsystem/volumelimit.conf )
else
volumelimitconf='{ "STARTUP": '$( volumeGet )', "MAX": 100 }'
volume=$( volumeGet )
[[ $volume == 0 || ! $volume ]] && volume=50
volumelimitconf='{ "STARTUP": '$volume', "MAX": 100 }'
fi

##########
Expand Down

0 comments on commit 1aa27e9

Please sign in to comment.