#!/bin/bash # $HeadURL$ $LastChangedRevision$ ## Note this error message is sent to the terminal as it is imperative the user understands the failure. [ $(id -u) = 0 ] || { echo "${0##*/}: this test can only pass when run as root" >/dev/tty; exit 1; } echo "setting up environment ..." export JS_NAME=$(tr -dc A-Za-z0-9