#!/bin/bash

ln -sf /usr/share/cmsimplexh/cmsimple

if [ ! -d config ]; then
  cp -af /usr/share/cmsimplexh/config .
fi

if [ ! -d content ]; then
  cp -af /usr/share/cmsimplexh/content .
fi

ln -sf /usr/share/cmsimplexh/css 
cp -af /usr/share/cmsimplexh/downloads .
cp -af /usr/share/cmsimplexh/images .
cp -af /usr/share/cmsimplexh/index.php .
cp -af /usr/share/cmsimplexh/languages .

if [ ! -d logs ]; then 
  cp -af /usr/share/cmsimplexh/logs .
fi

ln -sf /usr/share/cmsimplexh/plugins
ln -sf /usr/share/cmsimplexh/templates
