Last active 1 month ago
Small wrapper script for giving LLMs access to installing/removing apt packages while reducing their ability to bypass these restrictions
0
0
1
| 1 | #!/usr/bin/bash |
| 2 | set -euo pipefail |
| 3 | |
| 4 | export PATH=/usr/sbin:/usr/bin:/sbin:/bin |
| 5 | export DEBIAN_FRONTEND=noninteractive |
| 6 | export DEBIAN_PRIORITY=critical |
| 7 | |
| 8 | APT=/usr/bin/apt-get |
| 9 | |
| 10 | if (( EUID != 0 )); then |