Skip to content

Commit

Permalink
Add sudo -E env PATH=/home/stan/.vscode/extensions/ms-python.python-2…
Browse files Browse the repository at this point in the history
…024.12.2-linux-x64/python_files/deactivate/zsh:/home/stan/p4containerflow/.venv/bin:/home/stan/.vscode/extensions/ms-python.python-2024.12.2-linux-x64/python_files/deactivate/zsh:/home/stan/p4containerflow/.venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin to edit_files_img.py call
  • Loading branch information
stano45 committed Aug 10, 2024
1 parent f19c441 commit 8001ad9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/redis/cr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ sudo podman container checkpoint --ignore-volumes --export $CHECKPOINT_PATH --co
sudo podman rm -f $SOURCE_HOST

# Edit the checkpoint files with new IP
sudo ../../scripts/edit_files_img.py $CHECKPOINT_PATH $SOURCE_IP $TARGET_IP
# -E env PATH=$PATH is used to keep crit in the PATH
sudo -E env PATH=$PATH ../../scripts/edit_files_img.py $CHECKPOINT_PATH $SOURCE_IP $TARGET_IP

# Remove the target container
sudo podman container rm -f ${TARGET_HOST}
Expand Down

0 comments on commit 8001ad9

Please sign in to comment.