pg_backup_and_purge.py: Remove .py extension.

This commit is contained in:
rht
2017-10-08 14:43:07 +02:00
committed by Tim Abbott
parent ec080aed6b
commit de30400fc5
3 changed files with 4 additions and 4 deletions

View File

@@ -43,12 +43,12 @@ class zulip::postgres_common {
require => Package["postgresql-${zulip::base::postgres_version}"],
}
file { "/usr/local/bin/pg_backup_and_purge.py":
file { "/usr/local/bin/pg_backup_and_purge":
ensure => file,
owner => "root",
group => "postgres",
mode => 754,
source => "puppet:///modules/zulip/postgresql/pg_backup_and_purge.py",
source => "puppet:///modules/zulip/postgresql/pg_backup_and_purge",
require => File["/usr/local/bin/env-wal-e"],
}

View File

@@ -23,14 +23,14 @@ class zulip_ops::postgres_common {
}
cron { "pg_backup_and_purge":
command => "/usr/local/bin/pg_backup_and_purge.py",
command => "/usr/local/bin/pg_backup_and_purge",
ensure => present,
environment => "PATH=/bin:/usr/bin:/usr/local/bin",
hour => 5,
minute => 0,
target => "postgres",
user => "postgres",
require => [ File["/usr/local/bin/pg_backup_and_purge.py"],
require => [ File["/usr/local/bin/pg_backup_and_purge"],
Package["postgresql-${zulip::base::postgres_version}",
"python3-dateutil",
"python-dateutil"