[packages] utils/boxbackup: Corrected refresh (delete, touch) before rebuild of the raidfile configuration. It was happening for every set instead of only before the first set.
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28035 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e20278b0f5
commit
d1120123eb
@ -115,10 +115,6 @@ bbstored_global() {
|
|||||||
raidfile_section() {
|
raidfile_section() {
|
||||||
local cfg="$1"
|
local cfg="$1"
|
||||||
|
|
||||||
[ -z "$BXBK_RAIDFILE_CONF" ] && return 1
|
|
||||||
rm -f "$BXBK_RAIDFILE_CONF"
|
|
||||||
touch "$BXBK_RAIDFILE_CONF"
|
|
||||||
|
|
||||||
local setnum
|
local setnum
|
||||||
local blocksize
|
local blocksize
|
||||||
local path
|
local path
|
||||||
@ -155,6 +151,11 @@ create_config() {
|
|||||||
|
|
||||||
config_load bbstored
|
config_load bbstored
|
||||||
config_foreach bbstored_global bbstored
|
config_foreach bbstored_global bbstored
|
||||||
|
|
||||||
|
[ -z "$BXBK_RAIDFILE_CONF" ] && return 1
|
||||||
|
rm -f "$BXBK_RAIDFILE_CONF"
|
||||||
|
touch "$BXBK_RAIDFILE_CONF"
|
||||||
|
|
||||||
config_foreach raidfile_section raidfile
|
config_foreach raidfile_section raidfile
|
||||||
|
|
||||||
chown -R ${RUNAS_USER:-nobody}:${RUNAS_GROUP:-nogroup} "$BXBK_CONFIG_PATH"
|
chown -R ${RUNAS_USER:-nobody}:${RUNAS_GROUP:-nogroup} "$BXBK_CONFIG_PATH"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user