Skip to content

Commit

Permalink
Improving code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
AuHau committed Feb 27, 2019
1 parent e7f462d commit ffc2c10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LABEL description="Allows continuously publishing static pages from Git reposito

ARG IPFS_PUBLISH_CONFIG=/data/ipfs_publish/config.toml

RUN apt-get install git \
RUN apt-get -y install git=2.19.1 \
&& mkdir -p /data \
&& adduser --home /data --uid 1000 --disabled-password --ingroup users ipfs_publish \
&& chown ipfs_publish:users /data
Expand Down
2 changes: 1 addition & 1 deletion publish/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _load_data(self,
self._verify_data(data)

repos: typing.Dict[str, publishing.GenericRepo] = {}
for key, value in data.pop('repos', {}).items():
for value in data.pop('repos', {}).values():
repo_class = publishing.get_repo_class(value['git_repo_url'])
repo = repo_class.from_toml_dict(value, self)
repos[repo.name] = repo
Expand Down
2 changes: 1 addition & 1 deletion startup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash

export HOST_ADDR=`ip -4 route list match 0/0 | awk '{print $3}'`
export HOST_ADDR=$(ip -4 route list match 0/0 | awk '{print $3}')

/data/.local/bin/ipfs-publish $@

0 comments on commit ffc2c10

Please sign in to comment.