Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #350 from erickvermot/napps_perm_manager
Browse files Browse the repository at this point in the history
Sets the appropriate permission to the napps folder.
  • Loading branch information
beraldoleal committed Apr 18, 2017
2 parents 4e3666d + e8d70cf commit 8212b17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kytos/core/napps/manager.py
@@ -1,6 +1,7 @@
"""Manage Network Application files."""
import json
import logging
import os
import shutil
import urllib
from pathlib import Path
Expand Down Expand Up @@ -89,6 +90,7 @@ def install(self, napp_uri, enable=True):
dst = self._installed / napp.username / napp.name
self._create_module(dst.parent)
shutil.move(str(napp_folder), str(dst))
os.chmod(dst, mode=0o755)
finally:
if pkg_folder and pkg_folder.exists():
shutil.rmtree(str(pkg_folder))
Expand Down

0 comments on commit 8212b17

Please sign in to comment.