blob: 0ac4ae72ad3dd84f143ed90f1d9bb19550e49e57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
if [[ $UID -eq 0 ]]; then
echo "Do not run viper as root!"
exit 1
elif groups $USER | grep &>/dev/null "\bviper\b"; then
"/opt/viper/$(basename $0)" "$@"
else
echo "You have to be in group 'viper'"
exit 1
fi
|