From 79bac289456deb99dab40e219359bec80e5dc5ef Mon Sep 17 00:00:00 2001 From: "jrayhawk+piny.be@omgwallhack.org" Date: Tue, 1 Feb 2011 20:38:51 -0800 Subject: Adding a help command for use in pinyshell --- pinyadmin/bin/pinyhelp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 pinyadmin/bin/pinyhelp 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 "; fi +if [ -x /srv/rbin/rmrepo ]; then echo "Remove an existing repository: rmrepo "; fi +if [ -x /srv/rbin/addaccess ]; then echo "Add access to a repository for a user: addaccess "; fi +if [ -x /srv/rbin/rmaccess ]; then echo "Remove access to a repository for a user: rmaccess "; 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 [value]"; fi -- cgit v1.2.3