f644d2eb6f6554de9f00c56b6356c306ce4c2c9f

Author
fred-o <fredrik.appelberg@gmail.com>
Committer
Phil Eichinger <phil@zankapfel.net>
Date

Message

added alias

Diff

 1diff --git a/plugins/glassfish/_glassfish b/plugins/glassfish/_glassfish
 2deleted file mode 100644
 3index 8b137891791fe96927ad78e64b0aad7bded08bdc..0000000000000000000000000000000000000000
 4--- a/plugins/glassfish/_glassfish
 5+++ /dev/null
 6@@ -1 +0,0 @@
 7-
 8diff --git a/plugins/glassfish/glassfish.plugin.zsh b/plugins/glassfish/glassfish.plugin.zsh
 9new file mode 100644
10index 0000000000000000000000000000000000000000..49ca232999b0e62a0fba35101c102c6184756d29
11--- /dev/null
12+++ b/plugins/glassfish/glassfish.plugin.zsh
13@@ -0,0 +1,3 @@
14+# if there is a user named 'glassfish' on the system, we'll assume
15+# that is the user asadmin should be run as
16+grep -e '^glassfish' /etc/passwd > /dev/null && alias asadmin='sudo -u glassfish asadmin'