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
408939d2
Commit
408939d2
authored
Jan 04, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update packages versions
parent
c8e6ee26
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
update_nand.php
src/update/update_nand.php
+2
-0
No files found.
src/update/update_nand.php
View file @
408939d2
...
@@ -204,6 +204,8 @@ function copy_backup(){
...
@@ -204,6 +204,8 @@ function copy_backup(){
//restore old configs
//restore old configs
exec
(
"mkdir -p ${UBI_MNT}${BKP_DIR}"
);
exec
(
"mkdir -p ${UBI_MNT}${BKP_DIR}"
);
exec
(
"tar -C ${UBI_MNT}${BKP_DIR} -xzpf var/
$BKP_NAME
"
);
exec
(
"tar -C ${UBI_MNT}${BKP_DIR} -xzpf var/
$BKP_NAME
"
);
//take package versions from defaults
exec
(
"cp ${UBI_MNT}${BKP_DIR}_defaults/packages/* ${UBI_MNT}${BKP_DIR}/packages/"
);
}
else
{
}
else
{
exec
(
"cp -r
$UBI_MNT
${BKP_DIR}
$UBI_MNT
${BKP_DIR}_defaults"
);
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