From: Martin Mares Date: Wed, 18 Mar 2009 13:28:05 +0000 (+0100) Subject: More updates of MO-P admin scripts. X-Git-Tag: python-dummy-working~117 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=68782d6ca5be08116f6b74d2ef6b131e1ab2cea6;p=moe.git More updates of MO-P admin scripts. --- diff --git a/mop/admin/mo-create-contestants.sh b/mop/admin/mo-create-contestants.sh index 1de4b05..d094a31 100755 --- a/mop/admin/mo-create-contestants.sh +++ b/mop/admin/mo-create-contestants.sh @@ -6,6 +6,16 @@ set -e . cf/mop H=`pwd` +if [ ! -d template ] ; then + if [ -d ../mop/template ] ; then + echo "Symlinking templates from ../mop/template" + ln -s ../mop/template . + else + echo "Templates not found!" + exit 1 + fi +fi + cd $MO_ROOT rm -rf users mkdir users @@ -16,7 +26,7 @@ for a in `cd $H && bin/mo-get-users` ; do mkdir $a $a/$a chown root.$a $a chmod 750 $a - cp -a `find $H/template -mindepth 1 -maxdepth 1` $a/$a/ + cp -a `find $H/template/ -mindepth 1 -maxdepth 1` $a/$a/ if [ -n "$REMOTE_SUBMIT" ] ; then M=$a/$a/.mo