Skip to content

Commit

Permalink
Fixed issue #82 and made sure that newly generated files by mob_init …
Browse files Browse the repository at this point in the history
…are readable by the other users by setting permission 755
  • Loading branch information
kbessonov1984 committed Aug 3, 2021
1 parent 713ebff commit c347ca1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,11 @@ We recommend installing MOB-Suite via bioconda but you can install it via pip us
For system-wide installation one can follow these commands on Ubuntu distro that includes Python
library dependencies and tools
```bash
apt update && apt python3-pip
apt update && apt install python3-pip #installs gcc compiler for pycurl
apt install libcurl4-openssl-dev libssl-dev #for pycurl
pip3 install Cython
apt install mash ncbi-blast+
python3 setup.py install && mob_init #to install and init databases
```

### Docker image
Expand Down
9 changes: 9 additions & 0 deletions mob_suite/mob_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,15 @@ def main():
except:
logger.warning("Lock file is already removed by some other process.")
pass

#fix permissions to make sure others can read the directory
try:
for file in os.listdir(database_directory):
os.chmod(file,755)
except Exception as e:
print(e)
pass

logger.info("MOB init completed successfully")
return 0

Expand Down

0 comments on commit c347ca1

Please sign in to comment.