Commit 408939d2 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

update packages versions

parent c8e6ee26
......@@ -204,6 +204,8 @@ function copy_backup(){
//restore old configs
exec("mkdir -p ${UBI_MNT}${BKP_DIR}");
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{
exec("cp -r $UBI_MNT${BKP_DIR} $UBI_MNT${BKP_DIR}_defaults");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment