#! /bin/bash OWNER=www-data if [ \( $# -ne 1 \) -o \( "x$1" == "x" \) ]; then echo "USAGE: ./createworkshop.sh " >&2 exit 1; fi if [ ! -e "wsps/$1/sources" ] ; then "Workshop must already exists on this SCENARIserver (create it with SCENARIclient on the admin account)" >&2 exit 1; fi ln -s ../../../template/signature wsps/$1/sources/_signature ln -s ../../../template/visa wsps/$1/sources/_visa mkdir -p wsps/$1/sources/$1 chown $OWNER wsps/$1/sources/$1 ln -s ../../$1/sources/arretes wsps/SYSTEME/sources/$1 chmod 555 wsps/$1/sources for i in GED ARCHIVE DOCFLOW ; do mkdir -p wsps/$i/sources/$1 chown $OWNER wsps/$i/sources/$1 done