1
0
mirror of https://github.com/elisspace/rtinst.git synced 2026-08-31 16:34:16 +00:00
Files
rtinst/edit_su
2014-10-09 14:21:00 +01:00

11 lines
247 B
Bash

#!/bin/bash
if [ ! -z "$1" ]; then
if [ -z "$(grep "ALL ALL = NOPASSWD: /usr/local/bin/rtsetpass" $1)" ]; then
echo "ALL ALL = NOPASSWD: /usr/local/bin/rtsetpass" >> $1
fi
else
export EDITOR=$0
visudo
fi