Advertisement
Celmor

local.policy.desploy

Oct 16th, 2016
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/bin/bash
  2. file=local.policy
  3. target=/usr/share/polkit-1/actions
  4. user=root
  5. group=root
  6. perm=644
  7. sudo cp "$(dirname "$(which "$0")")/$file" "$target"
  8. sudo chown "$user":"$group" "$target"/"$file"
  9. sudo chmod $perm "$target"/"$file"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement