Ignore:
Timestamp:
06/12/13 13:27:51 (17 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
f70de07
Parents:
2567eba
Message:

If user gives jail template with spaces in the name, correct it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/warden/scripts/backend/createtemplate.sh

    r95952b3 r9cc2f9c  
    164164 
    165165 
    166 # Read our flags 
    167 while [ $# -gt 0 ]; do 
    168    case $1 in 
    169     -fbsd) shift 
    170            if [ -z "$1" ] ; then exit_err "No FreeBSD version specified"; fi 
    171            FBSDVER="${1}" 
    172            ;; 
    173   -trueos) shift 
    174            if [ -z "$1" ] ; then exit_err "No TrueOS version specified"; fi 
    175            TRUEOSVER="${1}" 
    176            ;; 
    177     -arch) shift 
    178            if [ -z "$1" ] ; then exit_err "No FreeBSD architecture specified"; fi 
    179            FBSDARCH="${1}" 
    180            ;; 
    181     -tar) shift 
    182            if [ -z "$1" ] ; then exit_err "No tar file specified"; fi 
    183            if [ ! -e "$1" ] ; then exit_err "Could not find tar file: $1"; fi 
    184            FBSDTAR="${1}" 
    185            ;; 
    186     -nick) shift 
    187            if [ -z "$1" ] ; then exit_err "No nickname specified"; fi 
    188            TNICK="${1}" 
    189            ;; 
    190  -pluginjail) shift 
    191            TPLUGJAIL="YES" 
    192            ;; 
    193         *) exit_err "Invalid option: $1" ;; 
    194    esac 
    195    shift 
    196 done 
    197  
    198166if [ -z "$TNICK" ] ; then exit_err "No nickname specified, use -nick <nickname>"; fi 
    199167if [ -z "$FBSDTAR" ] ; then  
Note: See TracChangeset for help on using the changeset viewer.