From a9b162442785eaaaaae24bb36488da1341007083 Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Sat, 2 May 2015 12:33:11 +0200 Subject: [PATCH] fixup! Fix #32: Extend image_commands docs --- bootstrapvz/plugins/image_commands/README.md | 28 -------------------- 1 file changed, 28 deletions(-) delete mode 100644 bootstrapvz/plugins/image_commands/README.md diff --git a/bootstrapvz/plugins/image_commands/README.md b/bootstrapvz/plugins/image_commands/README.md deleted file mode 100644 index e4ffb8b..0000000 --- a/bootstrapvz/plugins/image_commands/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# Image script plugin - -This plugin gives the possibility to the user to execute commands. - -Plugin is defined in the manifest file, plugin section with: - - "image_commands": { - "commands": [ [ "touch", "/var/www/index.html" ]], - } - -The *commands* element is an array of commands. Each command is an array describing the executable and its arguments. - -If you need shell expansion of wildcards, like __\*__, just put the entire command as a single entry: - - "image_commands": { - "commands": [ [ "rm -f /tmp/*" ]], - } - -Command is executed in current context. It is possible to use variables to access the image or execute chroot commands in the image. - -Available variables are: - {root} : image mount point (to copy files for example or chroot commands) - -Example: - - [[ "touch", "{root}/var/www/hello" ], - [ "/usr/sbin/chroot", "{root}", "touch", "/var/www/hello"]] -