summaryrefslogtreecommitdiff
path: root/~lukeshu/not-working/codeanalyst/codeanalyst.install
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-09-26 16:32:08 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-09-26 16:32:08 -0400
commit250a51839dd1346d49bc64909a660b00bc2ac7af (patch)
tree582e4b412e0b7f316c507064d5682ba0e94c6cd0 /~lukeshu/not-working/codeanalyst/codeanalyst.install
parent3dfdbdcd346adbd10887bf1ba52b049832f13c24 (diff)
downloadabslibre-250a51839dd1346d49bc64909a660b00bc2ac7af.tar.gz
abslibre-250a51839dd1346d49bc64909a660b00bc2ac7af.tar.bz2
abslibre-250a51839dd1346d49bc64909a660b00bc2ac7af.zip
move ~lukeshu/codeanalyst to ~/lukeshu/not-working/codeanalyst
Diffstat (limited to '~lukeshu/not-working/codeanalyst/codeanalyst.install')
-rwxr-xr-x~lukeshu/not-working/codeanalyst/codeanalyst.install29
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
+}