summaryrefslogtreecommitdiff
path: root/plugins/glassfish/glassfish.plugin.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/glassfish/glassfish.plugin.zsh')
-rw-r--r--plugins/glassfish/glassfish.plugin.zsh3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/glassfish/glassfish.plugin.zsh b/plugins/glassfish/glassfish.plugin.zsh
new file mode 100644
index 000000000..49ca23299
--- /dev/null
+++ b/plugins/glassfish/glassfish.plugin.zsh
@@ -0,0 +1,3 @@
+# if there is a user named 'glassfish' on the system, we'll assume
+# that is the user asadmin should be run as
+grep -e '^glassfish' /etc/passwd > /dev/null && alias asadmin='sudo -u glassfish asadmin' \ No newline at end of file