#!/bin/bash
# A Sample Shell Script To Generate Mediawiki Wiki Software Google Sitemap Using PHP
# on server itself via cron.
# Warning: You need to customize this script before using it!
# -------------------------------------------------------------------------
# Copyright (c) 2008 nixCraft project
# This script is licensed under GNU GPL version 2.0 or above
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# -------------------------------------------------------------------------
# Path to wiki dir
BASE="/home/httpd/example.com/wiki"
# Wiki domain name
SERVER="http://www.example.com/"
# Path to actual sitemap file - change this
OUT="${BASE}/sitemap-index-cbzwikibashportal.xml"
cd $BASE/wiki/maintenance
php generateSitemap.php --fspath="$BASE" --server="${SERVER}"
# patch it up replace example.com with actual domain name
sed -i -e 's/sitemap-cbzwikibashportal-NS_[0-9]*-[0-9]*\.xml\.gz/http:\/\/www\.example\.com\/&/g' $OUT
Shell script para generar wiki MediaWiki
d
Suscribirse a:
Enviar comentarios (Atom)
0 comentarios:
Publicar un comentario