mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
pg_backup_and_purge.py: Remove .py extension.
This commit is contained in:
@@ -43,12 +43,12 @@ class zulip::postgres_common {
|
|||||||
require => Package["postgresql-${zulip::base::postgres_version}"],
|
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,
|
ensure => file,
|
||||||
owner => "root",
|
owner => "root",
|
||||||
group => "postgres",
|
group => "postgres",
|
||||||
mode => 754,
|
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"],
|
require => File["/usr/local/bin/env-wal-e"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,14 +23,14 @@ class zulip_ops::postgres_common {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cron { "pg_backup_and_purge":
|
cron { "pg_backup_and_purge":
|
||||||
command => "/usr/local/bin/pg_backup_and_purge.py",
|
command => "/usr/local/bin/pg_backup_and_purge",
|
||||||
ensure => present,
|
ensure => present,
|
||||||
environment => "PATH=/bin:/usr/bin:/usr/local/bin",
|
environment => "PATH=/bin:/usr/bin:/usr/local/bin",
|
||||||
hour => 5,
|
hour => 5,
|
||||||
minute => 0,
|
minute => 0,
|
||||||
target => "postgres",
|
target => "postgres",
|
||||||
user => "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}",
|
Package["postgresql-${zulip::base::postgres_version}",
|
||||||
"python3-dateutil",
|
"python3-dateutil",
|
||||||
"python-dateutil"
|
"python-dateutil"
|
||||||
|
|||||||
Reference in New Issue
Block a user