Permalink
Browse files

Updating Ubuntu sudoers file to be a little more ubuntu and a little …

…less cowboy.
  • Loading branch information...
1 parent 9e469c1 commit 32b9f790da796684f8c16da87d06e6f56cb047bb @cowboy committed Jan 6, 2012
Showing with 4 additions and 3 deletions.
  1. 0 conf/{sudoers-cowboy → ubuntu/sudoers-dotfiles}
  2. +4 −3 init/10_ubuntu.sh
File renamed without changes.
View
@@ -2,12 +2,13 @@
[[ "$(cat /etc/issue 2> /dev/null)" =~ Ubuntu ]] || return 1
# Installing this sudoers file makes life easier.
-sudoers_file="sudoers-cowboy"
+sudoers_file="sudoers-dotfiles"
+sudoers_src=~/.dotfiles/conf/ubuntu/$sudoers_file
sudoers_dest="/etc/sudoers.d/$sudoers_file"
-if [[ ! -e "$sudoers_dest" || "$sudoers_dest" -ot "conf/$sudoers_file" ]]; then
+if [[ ! -e "$sudoers_dest" || "$sudoers_dest" -ot "$sudoers_src" ]]; then
e_header "Updating sudoers"
{
- sudo cp "conf/$sudoers_file" "$sudoers_dest" &&
+ sudo cp "$sudoers_src" "$sudoers_dest" &&
sudo chmod 0440 "$sudoers_dest"
} >/dev/null 2>&1
fi

0 comments on commit 32b9f79

Please sign in to comment.