1 #!/bin/bash 2 3 if [[ ! $2 ]] ; then 4 echo "Please specify a directory such as ../mywiki or /tmp/mywiki along" 5 echo "with the name of the theme into which the CategoryMenu styles will be" 6 echo "copied." 7 echo 8 echo "The specified directory should be the root of your Wiki resources" 9 echo "and contain the different theme resources directories, such as classic," 10 echo "modern, hypermodern, and so on, each containing css and img directories." 11 echo 12 echo "The specified directory may be called htdocs, but sometimes it is called" 13 echo "something like moin_static160." 14 echo 15 echo "You may wish to uncomment and modify the chown command in this script." 16 exit 17 fi 18 19 cp css/*.css $1/$2/css/ 20 #chown www-data: $1/htdocs/$2/css/