summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Chatzimichos <tampakrap@gentoo.org>2010-09-14 00:24:14 +0300
committerTheo Chatzimichos <tampakrap@gentoo.org>2010-09-14 00:24:14 +0300
commit135b5bc8a0bf956f84ee4b775aa609ecb8a69d31 (patch)
tree99d2c4a83654881ae1d0867fb3a03e7108f31dcb /scripts
parentAdd archives' files (diff)
downloadplanet-135b5bc8a0bf956f84ee4b775aa609ecb8a69d31.tar.gz
planet-135b5bc8a0bf956f84ee4b775aa609ecb8a69d31.tar.bz2
planet-135b5bc8a0bf956f84ee4b775aa609ecb8a69d31.zip
Put the correct archives/index.php file
Add commands for the initial setup of the planet to update-venus cron
Diffstat (limited to 'scripts')
-rw-r--r--scripts/update-venus15
1 files changed, 11 insertions, 4 deletions
diff --git a/scripts/update-venus b/scripts/update-venus
index 3ed1d0a..ac8f414 100644
--- a/scripts/update-venus
+++ b/scripts/update-venus
@@ -5,11 +5,18 @@ BASE_DIR="/var/www/planet.gentoo.org/"
RESTRICT=""
VENUS_DIR="/usr/lib/python2.6/site-packages/venus/"
-cd ${BASE_DIR}
+# Create folders and symlinks (for initial setup)
+mkdir -p ${BASE_DIR}htdocs
+[[ -L ${BASE_DIR}public_html ]] || ln -s ${BASE_DIR}htdocs ${BASE_DIR}public_html
+if [ ! -d ${BASE_DIR}planet-gentoo]; then
+ git clone git://git.overlays.gentoo.org/proj/planet-gentoo.git ${BASE_DIR}planet-gentoo
+fi
+mkdir -p ${BASE_DIR}logs/{planet,universe} ${BASE_DIR}generated_configs
+touch generated_configs/venus.{planet,universe}.ini
+[[ -L ${BASE_DIR}htdocs/images ]] ln -s ${BASE_DIR}planet-gentoo/media/* htdocs/
+mkdir -p ${BASE_DIR}htdocs/archives ${BASE_DIR}htdocs/universe/archives
-# Get latest SVN changes
-#git pull ${BASE_DIR}/planet-gentoo/configs/ >/dev/null 2>&1
-#git pull ${BASE_DIR}/planet-gentoo/templates/ >/dev/null 2>&1
+# Get latest Git changes
git pull ${BASE_DIR}planet-gentoo/ >/dev/null 2>&1
# Run Venus