diff options
Diffstat (limited to 'skripti/namesti.sh')
-rwxr-xr-x | skripti/namesti.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/skripti/namesti.sh b/skripti/namesti.sh new file mode 100755 index 0000000..88253bf --- /dev/null +++ b/skripti/namesti.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -xeuo pipefail +sendmail anton@sijanec.eu <<EOF +Subject: $DOAS_USER zagnal $0 $@ + +Uporabnik $DOAS_USER na računalniku `hostname` je pravkar zahteval poganjanje programa $0 z argumenti $@ kot root. Ugodil bom njegovi zahtevi. +EOF +p=`grep -Eo '[a-zA-Z0-9+][a-zA-Z0-9_+.-]*[a-zA-Z0-9_+./]*' <<<$1 | head -n1` +echo Začel bom nameščanje $p. +echo | emerge $p |