SVN: PLD-doc/book/stylesheet/cron_pld_doc
ciesiel
ciesiel w pld-linux.org
Śro, 6 Kwi 2011, 12:04:10 CEST
Author: ciesiel
Date: Wed Apr 6 12:04:09 2011
New Revision: 12222
Added:
PLD-doc/book/stylesheet/cron_pld_doc (contents, props changed)
Log:
- dodanie prostej obslugi odswiezania strony PLD-DOC z crone
Added: PLD-doc/book/stylesheet/cron_pld_doc
==============================================================================
--- (empty file)
+++ PLD-doc/book/stylesheet/cron_pld_doc Wed Apr 6 12:04:09 2011
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+MAKE_SOURCE="/home/users/svnpld/svnpld/PLD-doc/book/stylesheet"
+HTML_SOURCE="/home/users/svnpld/svnpld/PLD-doc/book/stylesheet/html"
+HTML_DEST="/home/services/lighttpd/html"
+USER=lighttpd
+GROUP=users
+
+cd $MAKE_SOURCE
+
+if make
+ then
+ {
+ mv -f $HTML_SOURCE/* $HTML_DEST
+
+# set permission and owner - if needed
+# chmod 644 $HTML_DEST/*.png
+# chmod 644 $HTML_DEST/*.html
+# chmod 755 $HTML_DEST/zrzuty_ekr/
+# chmod 644 $HTML_DEST/zrzuty_ekr/*
+# chown $USER:$GROUP $HTML_DEST/*.png
+# chown $USER:$GROUP $HTML_DEST/*.html
+# chown -R $USER:$GROUP $HTML_DEST/zrzuty_ekr/
+ }
+fi
Więcej informacji o liście pld-doc