fix #15
3
Makefile
3
Makefile
|
@ -9,6 +9,9 @@ SHELL_FILES ?= $(wildcard .*/*.sh */*.sh */*/*.sh)
|
||||||
|
|
||||||
all: install tests
|
all: install tests
|
||||||
|
|
||||||
|
player:
|
||||||
|
$(call make,stack-ipfs-$(if $(DELETE),down,up) USER=$(PLAYER),$(MYOS),IPFS_IDENTITY_PEERID IPFS_IDENTITY_PRIVKEY)
|
||||||
|
|
||||||
tests: shellcheck
|
tests: shellcheck
|
||||||
|
|
||||||
shellcheck:
|
shellcheck:
|
||||||
|
|
|
@ -183,10 +183,14 @@ RUN echo "SHELL=/bin/bash" > "/var/spool/cron/crontabs/$USER" \
|
||||||
&& echo "12 20 * * * /bin/bash /home/zen/.zen/Astroport.ONE/20h12.process.sh > /tmp/20h12.log 2>&1" >> "/var/spool/cron/crontabs/$USER" \
|
&& echo "12 20 * * * /bin/bash /home/zen/.zen/Astroport.ONE/20h12.process.sh > /tmp/20h12.log 2>&1" >> "/var/spool/cron/crontabs/$USER" \
|
||||||
&& chown "$USER" "/var/spool/cron/crontabs/$USER"
|
&& chown "$USER" "/var/spool/cron/crontabs/$USER"
|
||||||
|
|
||||||
HEALTHCHECK CMD [ $(ps aux |grep 'nc -l -p' |wc -l) -lt 199 ] && echo -n OK
|
|
||||||
|
|
||||||
VOLUME "/home/$USER/.ipfs"
|
VOLUME "/home/$USER/.ipfs"
|
||||||
VOLUME "/home/$USER/.zen"
|
VOLUME "/home/$USER/.zen"
|
||||||
VOLUME "/home/$USER/Astroport"
|
VOLUME "/home/$USER/Astroport"
|
||||||
|
|
||||||
|
# homedir
|
||||||
|
RUN mkdir -p "/home/$USER/.ipfs" "/home/$USER/.zen" "/home/$USER/Astroport" \
|
||||||
|
&& chown "$USER" "/home/$USER/.ipfs" "/home/$USER/.zen" "/home/$USER/Astroport"
|
||||||
|
|
||||||
|
HEALTHCHECK CMD [ $(ps aux |grep 'nc -l -p' |wc -l) -lt 199 ] && echo -n OK
|
||||||
|
|
||||||
WORKDIR "/home/$USER"
|
WORKDIR "/home/$USER"
|
||||||
|
|
|
@ -10,7 +10,7 @@ cron() {
|
||||||
}
|
}
|
||||||
|
|
||||||
log() {
|
log() {
|
||||||
tail -F /var/log/fail2ban.log /var/log/syslog /var/log/auth.log /var/log/pam-script.log >&2
|
tail -F /var/log/auth.log /var/log/pam-script.log >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
zen() {
|
zen() {
|
||||||
|
|
Loading…
Reference in New Issue