3
# path of MoinMoin shared files
6
# path to target instance location
15
echo "You must specify an instance (relative or absolute path)"
19
if [[ -e $1 || -d $1 ]]
21
echo "$1 already exists"
26
cp -R $SHARE/data $INSTANCE
27
cp -R $SHARE/underlay $INSTANCE
28
cp $SHARE/config/wikiconfig.py $INSTANCE
30
chown -R $USER.$GROUP $INSTANCE
31
chmod -R ug+rwX $INSTANCE
32
chmod -R o-rwx $INSTANCE