mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
fix rollback fonction
This commit is contained in:
parent
d2dc8b1963
commit
3f45872414
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ function bck {
|
|||
|
||||
function rst {
|
||||
[[ ! -d "$LEGACY" ]] && echo >&2 "Rollback failed : Unknown folder $LEGACY" && exit $ERR_FAIL_RESTORE
|
||||
mv -fv "$LEGACY"/* /
|
||||
cp -rf "$LEGACY"/* /
|
||||
[[ $? -ne 0 ]] && echo >&2 "Rollback failed" && exit $ERR_FAIL_RESTORE
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue