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