# HG changeset patch # User Paul Boddie # Date 1264902307 -3600 # Node ID f18865d6d6a4b7c262f47f75cdc085fd913922a4 # Parent a04610d53bf19f1a009e5f45e5473e6ce1ddd319 Improved the installation script to work with different installation layouts. diff -r a04610d53bf1 -r f18865d6d6a4 insttheme --- a/insttheme Sun Jan 31 02:29:49 2010 +0100 +++ b/insttheme Sun Jan 31 02:45:07 2010 +0100 @@ -2,17 +2,18 @@ if [[ ! $1 ]] ; then echo "Please specify a Wiki directory such as ../mywiki or /tmp/mywiki." + echo "This should contain a data directory." exit fi if [[ ! $2 ]] ; then echo "Please also specify the directory containing the theme resources," - echo "such as ../moin/share/moin/." + echo "such as ../moin/share/moin/htdocs." exit fi -mkdir -p $2/htdocs/minimalmoin -cp -ir themes/minimalmoin/css $2/htdocs/minimalmoin -cp -r themes/minimalmoin/img $2/htdocs/minimalmoin -cp themes/minimalmoin/minimalmoin.py $1/wiki/data/plugin/theme/ -chown www-data: $1/wiki/data/plugin/theme/minimalmoin.py +mkdir -p $2/minimalmoin +cp -ir themes/minimalmoin/css $2/minimalmoin +cp -r themes/minimalmoin/img $2/minimalmoin +cp themes/minimalmoin/minimalmoin.py $1/data/plugin/theme/ +chown www-data: $1/data/plugin/theme/minimalmoin.py