mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] 2nd installation of apps with a hooks directory
This commit is contained in:
parent
be62093164
commit
a2a7c72054
1 changed files with 1 additions and 1 deletions
|
@ -433,7 +433,7 @@ def app_install(auth, app, label=None, args=None):
|
||||||
if 'hooks' in os.listdir(app_tmp_folder):
|
if 'hooks' in os.listdir(app_tmp_folder):
|
||||||
for hook in os.listdir(app_tmp_folder +'/hooks'):
|
for hook in os.listdir(app_tmp_folder +'/hooks'):
|
||||||
#TODO: do it with sed ?
|
#TODO: do it with sed ?
|
||||||
if file[:1] != '.':
|
if hook[:1] != '.':
|
||||||
with open(app_tmp_folder +'/hooks/'+ hook, "r") as sources:
|
with open(app_tmp_folder +'/hooks/'+ hook, "r") as sources:
|
||||||
lines = sources.readlines()
|
lines = sources.readlines()
|
||||||
with open(app_tmp_folder +'/hooks/'+ hook, "w") as sources:
|
with open(app_tmp_folder +'/hooks/'+ hook, "w") as sources:
|
||||||
|
|
Loading…
Add table
Reference in a new issue