summaryrefslogtreecommitdiff
path: root/pinyadmin
diff options
context:
space:
mode:
authorjrayhawk+piny.be@omgwallhack.org <jrayhawk@dev.piny.svcs.cs.pdx.edu>2011-02-01 20:38:51 -0800
committerjrayhawk+piny.be@omgwallhack.org <jrayhawk@dev.piny.svcs.cs.pdx.edu>2011-02-01 20:38:51 -0800
commit79bac289456deb99dab40e219359bec80e5dc5ef (patch)
treec1454a664e65f3f2ac0a28210b33839f7cda7251 /pinyadmin
parent73972b824c354e20da48670f3b1bc7aa68a33e07 (diff)
downloadpiny-code-79bac289456deb99dab40e219359bec80e5dc5ef.tar.gz
piny-code-79bac289456deb99dab40e219359bec80e5dc5ef.zip
Adding a help command for use in pinyshell
Diffstat (limited to 'pinyadmin')
-rwxr-xr-xpinyadmin/bin/pinyhelp16
1 files changed, 16 insertions, 0 deletions
diff --git a/pinyadmin/bin/pinyhelp b/pinyadmin/bin/pinyhelp
new file mode 100755
index 0000000..2394901
--- /dev/null
+++ b/pinyadmin/bin/pinyhelp
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+if [ $SHELL = /usr/bin/pinyshell ]; then
+ echo "You are in a restricted shell. Along with some safe Bash builtins, you are able to execute the following Piny commands:"
+else
+ echo "You are able to execute the following Piny commands:"
+fi
+echo
+
+if [ -x /srv/rbin/newrepo ]; then echo "Create a new repository (interactive): newrepo <reponame>"; fi
+if [ -x /srv/rbin/rmrepo ]; then echo "Remove an existing repository: rmrepo <reponame>"; fi
+if [ -x /srv/rbin/addaccess ]; then echo "Add access to a repository for a user: addaccess <reponame> <username>"; fi
+if [ -x /srv/rbin/rmaccess ]; then echo "Remove access to a repository for a user: rmaccess <reponame> <username>"; fi
+if [ -x /srv/rbin/newuser ]; then echo "Create a new user (interactive): newuser"; fi
+if [ -x /srv/rbin/passwd ]; then echo "Change your password (interactive): passwd"; fi
+if [ -x /srv/rbin/pinyconfig ]; then echo "Change config variables for your repository: pinyconfig <reponame> <variablename> [value]"; fi