summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/update-wordpress')
-rw-r--r--scripts/update-wordpress7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/update-wordpress b/scripts/update-wordpress
index 1b19df26..018e7e5a 100644
--- a/scripts/update-wordpress
+++ b/scripts/update-wordpress
@@ -4,8 +4,11 @@ BASE_DIR="/var/www/blogs.gentoo.org/" # created by cfengine
#Create folders and symlinks
[[ -d ${BASE_DIR}htdocs/wp-content/plugins ]] && rm -rf ${BASE_DIR}htdocs/wp-content/plugins
[[ -L ${BASE_DIR}htdocs/wp-content/plugins ]] || ln -s ${BASE_DIR}blogs-gentoo/plugins ${BASE_DIR}htdocs/wp-content/
-[[ -d ${BASE_DIR}htdocs/wp-content/themes ]] && rm -rf ${BASE_DIR}htdocs/wp-content/themes
-[[ -L ${BASE_DIR}htdocs/wp-content/themes ]] || ln -s ${BASE_DIR}blogs-gentoo/themes ${BASE_DIR}htdocs/wp-content/
+
+# List of themes
+#[[ -d ${BASE_DIR}htdocs/wp-content/themes/theme1 ]] && rm -rf ${BASE_DIR}htdocs/wp-content/themes/theme1
+#[[ -L ${BASE_DIR}htdocs/wp-content/themes/theme1 ]] || ln -s ${BASE_DIR}blogs-gentoo/themes ${BASE_DIR}htdocs/wp-content/themes/
+
[[ -d ${BASE_DIR}htdocs/wp-content/blogs.dir ]] || mkdir ${BASE_DIR}htdocs/wp-content/blogs.dir
chown apache:root ${BASE_DIR}htdocs/wp-content/blogs.dir
chmod 744 ${BASE_DIR}htdocs/wp-content/blogs.dir