diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-16 20:08:12 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-16 20:08:12 -0400 |
commit | 4a0d84ee70b7ed0343eeb0c09df08c991ff7d95c (patch) | |
tree | 37e7b194c0bafd56472413dcf948e94b4765baef /~lukeshu/not-working/codeanalyst/codeanalyst.install | |
parent | 68fa07be35a2514835c1272884219adc110abc3b (diff) | |
parent | 7701a796e16a4196b4e0602d37b9fabbcb077ba8 (diff) | |
download | abslibre-4a0d84ee70b7ed0343eeb0c09df08c991ff7d95c.tar.gz abslibre-4a0d84ee70b7ed0343eeb0c09df08c991ff7d95c.tar.bz2 abslibre-4a0d84ee70b7ed0343eeb0c09df08c991ff7d95c.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 +} |