X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=mop%2Fadmin%2Fmo-create-contestants.sh;h=d094a3150d2b067bdc06c3a0c2ebc05dca016009;hb=30c7aff241814c9e99ff3c1521ac40b3d5c721d3;hp=1de4b054a84c8926e0295def8b8dabba53b2eee0;hpb=45622a514ae66c6815dcc79b08428d9e82299909;p=moe.git 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