add patch
This commit is contained in:
parent
7668316916
commit
8c0e8fc696
1 changed files with 11 additions and 0 deletions
11
frappe/patches/4_0/private_backups.py
Normal file
11
frappe/patches/4_0/private_backups.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
||||
# MIT License. See license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
from frappe.installer import make_site_dirs
|
||||
|
||||
def execute():
|
||||
make_site_dirs()
|
||||
if frappe.local.conf.backup and frappe.local.conf.backup.startswith("public"):
|
||||
raise Exception, "Backups path in conf set to public directory"
|
||||
Loading…
Add table
Reference in a new issue