diff options
author | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2012-10-11 17:39:09 -0200 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2012-10-11 17:39:09 -0200 |
commit | 4a6a67cb189d4b5a867259ed6783845bc11a3de7 (patch) | |
tree | f57c855bbe5ae2cb6f954d486073e36d8e1574cc /~lukeshu/not-working/codeanalyst/codeanalyst.install | |
parent | 4bc4b477ce80b006778fed0807e5f93a19ff1f15 (diff) | |
parent | 603c6e15dbcc77f54fc348e70c5cfcef5e2d6db2 (diff) | |
download | abslibre-4a6a67cb189d4b5a867259ed6783845bc11a3de7.tar.gz abslibre-4a6a67cb189d4b5a867259ed6783845bc11a3de7.tar.bz2 abslibre-4a6a67cb189d4b5a867259ed6783845bc11a3de7.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to '~lukeshu/not-working/codeanalyst/codeanalyst.install')
-rwxr-xr-x | ~lukeshu/not-working/codeanalyst/codeanalyst.install | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/~lukeshu/not-working/codeanalyst/codeanalyst.install b/~lukeshu/not-working/codeanalyst/codeanalyst.install new file mode 100755 index 000000000..6ed1ac841 --- /dev/null +++ b/~lukeshu/not-working/codeanalyst/codeanalyst.install @@ -0,0 +1,29 @@ +post_install() { + getent group amdca &>/dev/null || groupadd amdca &>/dev/null + echo " ==> To use CodeAnalyst as non-root, you must be in the 'amdca' group" + echo " ie: gpasswd -a USERNAME amdca" + + chown root:amdca /usr/bin/calog_report + chown root:amdca /usr/bin/capackage.sh + chown root:amdca /usr/bin/careport.sh + chown root:amdca /usr/bin/cgreport + chown root:amdca /usr/bin/CodeAnalyst + chown root:amdca /usr/bin/opannotate + chown root:amdca /usr/bin/oparchive + chown root:amdca /usr/bin/opcontrol + chown root:amdca /usr/bin/opgprof + chown root:amdca /usr/bin/ophelp + chown root:amdca /usr/bin/opimport + chown root:amdca /usr/bin/opjitconv + chown root:amdca /usr/bin/opreport + chown root:amdca /usr/bin/oprofiled + chown root:amdca /usr/sbin/ca_oprofile_controller + #chown root:amdca /usr/sbin/ca_user_manager + + update-desktop-database -q +} + +post_remove() { + getent group amdca &>/dev/null && groupdel amdca &>/dev/null + update-desktop-database -q +} |