mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
renamed function gitlab_configure_backups_cron -> gitlab_configure_backups_schedule
This commit is contained in:
parent
8fd099d45f
commit
b9e5232c08
@ -546,12 +546,12 @@ gitlab_configure_sidekiq() {
|
||||
export SIDEKIQ_MEMORY_KILLER_MAX_RSS
|
||||
}
|
||||
|
||||
gitlab_configure_backups_cron() {
|
||||
gitlab_configure_backups_schedule() {
|
||||
case ${GITLAB_BACKUP_SCHEDULE} in
|
||||
daily|weekly|monthly)
|
||||
if [[ ! $(crontab -u ${GITLAB_USER} -l >/tmp/cron.${GITLAB_USER} 2>/dev/null) || \
|
||||
! $(grep -q 'bundle exec rake gitlab:backup:create' /tmp/cron.${GITLAB_USER}) ]]; then
|
||||
echo "Configuring gitlab::backups::cron..."
|
||||
echo "Configuring gitlab::backups::schedule..."
|
||||
read hour min <<< ${GITLAB_BACKUP_TIME//[:]/ }
|
||||
day_of_month=*
|
||||
month=*
|
||||
@ -597,7 +597,7 @@ gitlab_configure_backups() {
|
||||
GITLAB_BACKUP_PG_SCHEMA \
|
||||
GITLAB_BACKUP_ARCHIVE_PERMISSIONS
|
||||
|
||||
gitlab_configure_backups_cron
|
||||
gitlab_configure_backups_schedule
|
||||
gitlab_configure_backups_aws
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user