mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-03 15:23:04 +00:00
zdtm: remove bashisms from hooks
Signed-off-by: Andrew Vagin <avagin@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
23b769498c
commit
bfe7f6dce5
1 changed files with 3 additions and 2 deletions
|
|
@ -2,13 +2,14 @@
|
|||
|
||||
umask 0000
|
||||
|
||||
[ "$1" == "--pre-restore" ] && {
|
||||
[ "$1" = "--pre-restore" ] && {
|
||||
exit
|
||||
# emulate rsync
|
||||
rm -rf etc/zdtm-test
|
||||
touch etc/zdtm-test
|
||||
}
|
||||
|
||||
[ "$1" == "--post-pre-dump" ] && {
|
||||
[ "$1" = "--post-pre-dump" ] && {
|
||||
echo 'invalidate the irmap cache'
|
||||
mv etc/zdtm-test etc/zdtm-test2
|
||||
mv etc/zdtm-test1 etc/zdtm-test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue