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