1 #!/bin/bash 2 3 if [[ ! $1 ]] ; then 4 echo "Please specify a Wiki directory such as ../mywiki or /tmp/mywiki." 5 exit 6 fi 7 8 if [[ ! $2 ]] ; then 9 echo "Please also specify the directory containing the theme resources," 10 echo "such as ../moin/share/moin/." 11 exit 12 fi 13 14 mkdir -p $2/htdocs/minimalmoin 15 cp -ir themes/minimalmoin/css $2/htdocs/minimalmoin 16 cp -r themes/minimalmoin/img $2/htdocs/minimalmoin 17 cp themes/minimalmoin/minimalmoin.py $1/wiki/data/plugin/theme/ 18 chown www-data: $1/wiki/data/plugin/theme/minimalmoin.py