mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
venv rebuild: migration should have an empty disclaimer when in auto mode
This commit is contained in:
parent
31aacb3361
commit
d2a6dcd41a
1 changed files with 7 additions and 0 deletions
|
@ -98,6 +98,10 @@ class MyMigration(Migration):
|
|||
if not self.is_pending():
|
||||
return None
|
||||
|
||||
# Disclaimer should be empty if in auto, otherwise it excepts the --accept-disclaimer option during debian postinst
|
||||
if self.mode == "auto":
|
||||
return None
|
||||
|
||||
ignored_apps = []
|
||||
rebuild_apps = []
|
||||
|
||||
|
@ -133,6 +137,9 @@ class MyMigration(Migration):
|
|||
|
||||
def run(self):
|
||||
|
||||
if self.mode == "auto":
|
||||
return
|
||||
|
||||
venvs = _get_all_venvs("/opt/") + _get_all_venvs("/var/www/")
|
||||
for venv in venvs:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue