Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-web-393
Commits
c8e6ee26
Commit
c8e6ee26
authored
Jan 04, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: unpacking backup
parent
438d8224
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
update_nand.php
src/update/update_nand.php
+1
-0
No files found.
src/update/update_nand.php
View file @
c8e6ee26
...
...
@@ -202,6 +202,7 @@ function copy_backup(){
if
(
is_dir
(
"
$UBI_MNT
${BKP_DIR}_defaults"
))
rmdir
(
"
$UBI_MNT
${BKP_DIR}_defaults"
);
rename
(
"
$UBI_MNT
${BKP_DIR}"
,
"
$UBI_MNT
${BKP_DIR}_defaults"
);
//restore old configs
exec
(
"mkdir -p ${UBI_MNT}${BKP_DIR}"
);
exec
(
"tar -C ${UBI_MNT}${BKP_DIR} -xzpf var/
$BKP_NAME
"
);
}
else
{
exec
(
"cp -r
$UBI_MNT
${BKP_DIR}
$UBI_MNT
${BKP_DIR}_defaults"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment