in a kubernetes Deployment yaml file is there a simple way to run multiple commands in the postStart hook of a container?
I\'m trying to do something like this:
Only one command allowed, but you can use sh -c like this
command
sh -c
lifecycle: postStart: exec: command: - "sh" - "-c" - > if [ -s /var/www/mybb/inc/config.php ]; then rm -rf /var/www/mybb/install; fi; if [ ! -f /var/www/mybb/index.php ]; then cp -rp /originroot/var/www/mybb/. /var/www/mybb/; fi