Hi,
i have a cronjob to update my containers. Sometimes it happens that there is an error in the command . Is there any way to ignore the error and go on with the rest of the terminal command ?
For Example:
50 3 * * * sudo docker stop wg-easy && sudo docker rm wg-easy && sudo docker pull weejewel/wg-easy && docker run -d --name=wg-easy
sometimes it happens that the docker isnt recongnized by the command "sudo docker rm wg-easy" and the command will stop there.
Thanks for any ideas
i have a cronjob to update my containers. Sometimes it happens that there is an error in the command . Is there any way to ignore the error and go on with the rest of the terminal command ?
For Example:
50 3 * * * sudo docker stop wg-easy && sudo docker rm wg-easy && sudo docker pull weejewel/wg-easy && docker run -d --name=wg-easy
sometimes it happens that the docker isnt recongnized by the command "sudo docker rm wg-easy" and the command will stop there.
Thanks for any ideas