mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 00:06:36 +00:00
commit
f43ff04809
@ -1,4 +1,4 @@
|
|||||||
VERSION = "5.2.0"
|
VERSION = "5.2.1"
|
||||||
PROJECT_NAME = "frappe-bench"
|
PROJECT_NAME = "frappe-bench"
|
||||||
FRAPPE_VERSION = None
|
FRAPPE_VERSION = None
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ from bench.utils import PatchError, bench_cache_file, check_latest_version, drop
|
|||||||
|
|
||||||
from_command_line = False
|
from_command_line = False
|
||||||
change_uid_msg = "You should not run this command as root"
|
change_uid_msg = "You should not run this command as root"
|
||||||
|
src = os.path.dirname(__file__)
|
||||||
|
|
||||||
|
|
||||||
def cli():
|
def cli():
|
||||||
@ -72,7 +73,7 @@ def check_uid():
|
|||||||
|
|
||||||
|
|
||||||
def cmd_requires_root():
|
def cmd_requires_root():
|
||||||
if len(sys.argv) > 2 and sys.argv[2] in ('production', 'sudoers', 'supervisor', 'lets-encrypt', 'fonts',
|
if len(sys.argv) > 2 and sys.argv[2] in ('production', 'sudoers', 'lets-encrypt', 'fonts',
|
||||||
'print', 'firewall', 'ssh-port', 'role', 'fail2ban', 'wildcard-ssl'):
|
'print', 'firewall', 'ssh-port', 'role', 'fail2ban', 'wildcard-ssl'):
|
||||||
return True
|
return True
|
||||||
if len(sys.argv) >= 2 and sys.argv[1] in ('patch', 'renew-lets-encrypt', 'disable-production'):
|
if len(sys.argv) >= 2 and sys.argv[1] in ('patch', 'renew-lets-encrypt', 'disable-production'):
|
||||||
|
@ -164,8 +164,8 @@ def disable_production():
|
|||||||
|
|
||||||
@click.command('src', help="Prints bench source folder path, which can be used as: cd `bench src`")
|
@click.command('src', help="Prints bench source folder path, which can be used as: cd `bench src`")
|
||||||
def bench_src():
|
def bench_src():
|
||||||
import bench
|
from bench.cli import src
|
||||||
print(os.path.dirname(bench.__path__[0]))
|
print(os.path.dirname(src))
|
||||||
|
|
||||||
|
|
||||||
@click.command('find', help="Finds benches recursively from location")
|
@click.command('find', help="Finds benches recursively from location")
|
||||||
|
Loading…
Reference in New Issue
Block a user