Skip to content

Commit

Permalink
move generate-sitemaps to prime
Browse files Browse the repository at this point in the history
  • Loading branch information
gmh04 committed Aug 25, 2015
1 parent f6e097b commit e80af27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
13 changes: 6 additions & 7 deletions manifests/cron.pp
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
class dspace::cron {
$ds_root = $dspace::dsroot
$ds_bin_dir = "${ds_root}/bin"

cron { generate-sitemap:
command => "${ds_bin_dir}/dspace generate-sitemaps",
minute => [0, 8, 16]
}
}

class dspace::cron::prime {
$ds_bin_dir = "${$dspace::dsroot}/bin"

cron { generate-sitemap:
command => "${ds_bin_dir}/dspace generate-sitemaps",
hour => [0, 8, 16],
minute => 0
}
}
10 changes: 5 additions & 5 deletions templates/backup.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
# back up dspace database

DATE=`date "+%Y-%m-%d"`
DUMP_FILE="$HOME"/backups/"$DATE"_<%= db_name %>_backup.dump
DUMP_FILE="$HOME"/backups/"$DATE"_<%= @db_name %>_backup.dump

HOST=<%= db_host %>
PORT=<%= db_port %>
DB_NAME=<%= db_name %>
DB_USER=<%= db_user %>
HOST=<%= @db_host %>
PORT=<%= @db_port %>
DB_NAME=<%= @db_name %>
DB_USER=<%= @db_user %>

echo "Dump database to $DUMP_FILE ..."
echo "Using: pg_dump -h $HOST -p $PORT -U $USER -Fc $DB_NAME"
Expand Down

0 comments on commit e80af27

Please sign in to comment.