Author: tchemit Date: 2015-12-15 08:40:58 +0100 (Tue, 15 Dec 2015) New Revision: 126 Url: http://forge.codelutin.com/projects/adminsys/repository/revisions/126 Log: Ajout des cron sp?\195?\169cifique ?\195?\160 chaque forge Added: scripts/redmine-tools/cron-redmine-chorem.org scripts/redmine-tools/cron-redmine-codelutin.com scripts/redmine-tools/cron-redmine-nuiton.org scripts/redmine-tools/cron-redmine.sh Added: scripts/redmine-tools/cron-redmine-chorem.org =================================================================== --- scripts/redmine-tools/cron-redmine-chorem.org (rev 0) +++ scripts/redmine-tools/cron-redmine-chorem.org 2015-12-15 07:40:58 UTC (rev 126) @@ -0,0 +1,6 @@ +#!/bin/sh +# +# cron-jobs for forge.chorem.org +# + +sh /opt/redmine-tools/cron-redmine.sh chorem.org chorem.org 03WmG5DuFqdlp75GyAeT "commits user devel build" \ No newline at end of file Property changes on: scripts/redmine-tools/cron-redmine-chorem.org ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: scripts/redmine-tools/cron-redmine-codelutin.com =================================================================== --- scripts/redmine-tools/cron-redmine-codelutin.com (rev 0) +++ scripts/redmine-tools/cron-redmine-codelutin.com 2015-12-15 07:40:58 UTC (rev 126) @@ -0,0 +1,6 @@ +#!/bin/sh +# +# cron-jobs for forge.codelutin.com +# + +sh /opt/redmine-tools/cron-redmine.sh codelutin.com forge.codelutin.com UDh19sTvBsU7HmzbxSlk "commits user devel build private" Property changes on: scripts/redmine-tools/cron-redmine-codelutin.com ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: scripts/redmine-tools/cron-redmine-nuiton.org =================================================================== --- scripts/redmine-tools/cron-redmine-nuiton.org (rev 0) +++ scripts/redmine-tools/cron-redmine-nuiton.org 2015-12-15 07:40:58 UTC (rev 126) @@ -0,0 +1,6 @@ +#!/bin/sh +# +# cron-job for forge.nuiton.org +# + +sh /opt/redmine-tools/cron-redmine.sh nuiton.org nuiton.org q6aM3bhpwi9w5Y0Q4tLA "commits user devel build" Property changes on: scripts/redmine-tools/cron-redmine-nuiton.org ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: scripts/redmine-tools/cron-redmine.sh =================================================================== --- scripts/redmine-tools/cron-redmine.sh (rev 0) +++ scripts/redmine-tools/cron-redmine.sh 2015-12-15 07:40:58 UTC (rev 126) @@ -0,0 +1,52 @@ +#!/bin/sh +# +# cron-jobs for redmine +# + +PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +#MAILTO=root + +FORGE=$1 +LIST_DOMAIN=$2 +API_KEY=$3 +LISTS=$4 + +LOG_FILE=/var/log/cron-redmine-$FORGE.log + + +date >> $LOG_FILE + +# Create common mailing-lists +for LIST_SUFFIX in $(echo $LISTS) ; do + echo "-- list $LIST_SUFFIX $(date)" + ruby /opt/redmine-tools/project-list.rb --redmine-host forge.$FORGE --admin-email moderate+$FORGE+$LIST_SUFFIX@codelutin.com --list-domain list.$LIST_DOMAIN --list-suffix $LIST_SUFFIX --key $API_KEY >> $LOG_FILE + +done + +#ruby /opt/redmine-tools/project-list.rb --redmine-host forge.$FORGE --admin-email moderate@codelutin.com --list-domain list.$LIST_DOMAIN --list-suffix commits --key $API_KEY >> $LOG_FILE +#ruby /opt/redmine-tools/project-list.rb --redmine-host forge.$FORGE --admin-email moderate@codelutin.com --list-domain list.$LIST_DOMAIN --list-suffix users --key $API_KEY >> $LOG_FILE +#ruby /opt/redmine-tools/project-list.rb --redmine-host forge.$FORGE --admin-email moderate@codelutin.com --list-domain list.$LIST_DOMAIN --list-suffix devel --key $API_KEY >> $LOG_FILE +#ruby /opt/redmine-tools/project-list.rb --redmine-host forge.$FORGE --admin-email moderate+$FORGE+build@codelutin.com --list-domain list.$LIST_DOMAIN --list-suffix build --key $API_KEY >> $LOG_FILE + +# Create scm repositories +echo "-- create scm $(date)" +#TODO Deal with git (so for the moment do nothing) +#ruby /opt/redmine-$FORGE/extra/svn/reposman.rb --redmine-host forge.$FORGE --svn-dir /var/lib/svn/svn-$FORGE --owner www-data --group publish --url http://forge.$FORGE/svn-private/ --key $API_KEY >> $LOG_FILE + +# Manage project scm +echo "-- manage scm $(date)" +#TODO Deal with git (so for the moment do nothing) +#ruby /opt/redmine-tools/project-scm.rb -s /var/lib/doc/$FORGE -r forge.$FORGE --owner publish --key $API_KEY >> $LOG_FILE + +# Make git project visible in gitweb +#TODO Should use a ruby script to allow private git repositories +echo "-- gitweb update $(date)" +bash /opt/git-tools/mark_public_git_repositories.sh $FORGE >> $LOG_FILE + +# Create project site configuration (apache) +echo "-- apache sites $(date)" +ruby /opt/redmine-tools/project-site.rb -f $FORGE -k $API_KEY >> $LOG_FILE + +# Update project technical site +echo "-- technical sites $(date)" +ruby /opt/redmine-tools/project-technical-site.rb -f $FORGE -k $API_KEY >> $LOG_FILE Property changes on: scripts/redmine-tools/cron-redmine.sh ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property
participants (1)
-
tchemit@users.forge.codelutin.com