mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Syncing time to account for time drift on VPS.
This commit is contained in:
parent
7907022d0d
commit
ac59ba7038
1 changed files with 10 additions and 1 deletions
11
fabfile.py
vendored
11
fabfile.py
vendored
|
@ -33,7 +33,7 @@ env.roledefs ={
|
|||
'local': ['localhost'],
|
||||
'app': ['app01.newsblur.com', 'app02.newsblur.com'],
|
||||
'web': ['www.newsblur.com', 'app02.newsblur.com'],
|
||||
'db': ['db01.newsblur.com', 'db02.newsblur.com', 'db03.newsblur.com'],
|
||||
'db': ['db01.newsblur.com', 'db03.newsblur.com'],
|
||||
'task': ['task01.newsblur.com', 'task02.newsblur.com', 'task03.newsblur.com'],
|
||||
}
|
||||
|
||||
|
@ -159,6 +159,15 @@ def backup_postgresql():
|
|||
with cd(os.path.join(env.NEWSBLUR_PATH, 'utils/backups')):
|
||||
run('./postgresql_backup.sh')
|
||||
|
||||
# ===============
|
||||
# = Calibration =
|
||||
# ===============
|
||||
|
||||
def sync_time():
|
||||
sudo("/etc/init.d/ntp stop")
|
||||
sudo("ntpdate pool.ntp.org")
|
||||
sudo("/etc/init.d/ntp start")
|
||||
|
||||
# =============
|
||||
# = Bootstrap =
|
||||
# =============
|
||||
|
|
Loading…
Add table
Reference in a new issue