## this file is /source/d by the WEBPUT-LL, WEBGET, WEBGETLOGS* scripts -- so only one file need be updated when something changes; ## USAGE: ## set /$PROJ/website; source /etc/sbin/WEBVARS <--old code uses this style; ## source /etc/sbin/WEBVARS /$PROJ/website <--exactly equivalent, and this param-passing style seems less "weird"; [ $# -lt 1 ] && { echo "positional parameter needed, /er/website or /noci/website or /debwendon/website etc"; exit; } ##ensure $1 is specified export FTP USERID PASSWORD ROOT DOM URL LOCURL ##2010-03: so visible in subshell, eg FTP-script ## setting the FTP USERID PASSWORD ROOT vars: [[ $1 == /debwendon* ]] && { FTP=98.130.112.23; USERID=ereimer; PASSWORD=password; ROOT=debwendon.org; } ##Debwendon.Org at HOSTEXCELLENCE 2008-02-29 [[ $1 == /er* ]] && { FTP=98.130.112.22; USERID=ereimer; PASSWORD=password; ROOT=ereimer.net; } ##Ereimer.Net at HOSTEXCELLENCE 2008-02-29 [[ $1 == /noci* ]] && { FTP=98.130.112.20; USERID=ereimer; PASSWORD=password; ROOT=nativeorchid.org; } ##Nativeorchid.Org HOSTEXCELLENCE 2008-02-29 ## setting the DOM URL LOCURL vars: [[ $1 == /debwendon* ]] && { DOM=debwendon.org; URL=http://www.$DOM; LOCURL=http://debwendon; } ##Debwendon.Org; standardize with www [[ $1 == /er* ]] && { DOM=ereimer.net; URL=http://$DOM; LOCURL=http://er; } ##Ereimer.Net; standarize W/O www [[ $1 == /noci* ]] && { DOM=nativeorchid.org; URL=http://www.$DOM; LOCURL=http://noci; } ##Nativeorchid.Org; standardize with www return 2010-10-27: made this publishable example (WEBVARS-SAMPLE) to demonstrate what's needed by WEBPUT-LL etc, but without revealing any of my actual passwords; publishing this as WEBVARS;