Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Reset Password for a User with Installed version
#!/bin/sh
cmd=`basename $0`
CWD=`pwd`
SCRIPTDIR=/opt/Serpico/embedded/bin
EMBEDDED=/opt/Serpico/embedded
SERPDIR=/opt/Serpico/Serpico
uname=$1
pass=$2
cd $CWD
unset GEM_HOME
unset GEM_PATH
unset GEM_ROOT
unset RUBY_ENGINE
unset RUBY_ROOT
PATH=$EMBEDDED:$SCRIPTDIR:$PATH
cd $SERPDIR
$SCRIPTDIR/ruby scripts/manage_users.rb -u $uname -p $pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.