mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
pg_backup_and_purge: Don't try to use a virtualenv.
This makes this actually work if the postgres server is different from the Zulip app frontend.
This commit is contained in:
@@ -3,9 +3,6 @@
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
sys.path.append('/home/zulip/deployments/current')
|
|
||||||
import scripts.lib.setup_path_on_import
|
|
||||||
|
|
||||||
import glob
|
import glob
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
@@ -13,7 +10,7 @@ import logging
|
|||||||
import dateutil.parser
|
import dateutil.parser
|
||||||
import pytz
|
import pytz
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from typing import List
|
if False: from typing import List
|
||||||
|
|
||||||
logging.basicConfig(format="%(asctime)s %(levelname)s: %(message)s")
|
logging.basicConfig(format="%(asctime)s %(levelname)s: %(message)s")
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|||||||
Reference in New Issue
Block a user