1
0
mirror of https://github.com/elisspace/rtinst.git synced 2026-09-14 06:56:40 +00:00
Files
rtinst/conf/edit_su
2015-11-08 19:29:54 +00: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