mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Avoid to modify untestable migrations
This commit is contained in:
parent
fac44f44d0
commit
0a2ba102c8
1 changed files with 38 additions and 39 deletions
|
@ -25,7 +25,6 @@ class MyMigration(Migration):
|
|||
dependencies = ["migrate_to_stretch"]
|
||||
|
||||
def run(self):
|
||||
try:
|
||||
# Get list of php5 pool files
|
||||
php5_pool_files = glob.glob("{}/*.conf".format(PHP5_POOLS))
|
||||
|
||||
|
@ -72,7 +71,8 @@ class MyMigration(Migration):
|
|||
|
||||
# Reload nginx
|
||||
_run_service_command("reload", "nginx")
|
||||
except Exception:
|
||||
|
||||
def backward(self):
|
||||
|
||||
# Get list of php7 pool files
|
||||
php7_pool_files = glob.glob("{}/*.conf".format(PHP7_POOLS))
|
||||
|
@ -97,4 +97,3 @@ class MyMigration(Migration):
|
|||
|
||||
# Reload nginx
|
||||
_run_service_command("reload", "nginx")
|
||||
raise
|
||||
|
|
Loading…
Add table
Reference in a new issue