diff options
author | Constantin Nickel | 2016-11-21 23:57:40 +0100 |
---|---|---|
committer | Constantin Nickel | 2016-11-21 23:57:40 +0100 |
commit | f68ed9f2f1daee589996ffd71f845dc1980c06d7 (patch) | |
tree | 1fdf4d107a5ec9541a059b3ff78acf9cd066cc65 /fix-permissions.sh | |
download | aur-f68ed9f2f1daee589996ffd71f845dc1980c06d7.tar.gz |
initial commit
Diffstat (limited to 'fix-permissions.sh')
-rw-r--r-- | fix-permissions.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fix-permissions.sh b/fix-permissions.sh new file mode 100644 index 000000000000..84429f47da7d --- /dev/null +++ b/fix-permissions.sh @@ -0,0 +1,15 @@ +#!/usr/bin/sh + +_group="${1:-games}" + +getent group $_group &> /dev/null + +if [ $? != 0 ]; then + echo "group '$_group' not found"; + echo "${0##/} [group] default: games" + exit 1 +fi + +# fix permissions +chgrp $_group /opt/historyline-1914-1918 +chmod g+w /opt/historyline-1914-1918 |