From a2a7c720545190a855f1a2d5e2fbfd02d708d3f6 Mon Sep 17 00:00:00 2001 From: zamentur Date: Sun, 9 Aug 2015 15:00:13 +0200 Subject: [PATCH] [fix] 2nd installation of apps with a hooks directory --- lib/yunohost/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yunohost/app.py b/lib/yunohost/app.py index 94f91f23f..421e017d3 100644 --- a/lib/yunohost/app.py +++ b/lib/yunohost/app.py @@ -433,7 +433,7 @@ def app_install(auth, app, label=None, args=None): if 'hooks' in os.listdir(app_tmp_folder): for hook in os.listdir(app_tmp_folder +'/hooks'): #TODO: do it with sed ? - if file[:1] != '.': + if hook[:1] != '.': with open(app_tmp_folder +'/hooks/'+ hook, "r") as sources: lines = sources.readlines() with open(app_tmp_folder +'/hooks/'+ hook, "w") as sources: