This commit is contained in:
Yann Autissier 2022-11-23 18:28:20 +00:00
parent 26122a1422
commit ba01d0f602
3 changed files with 10 additions and 3 deletions

View File

@ -9,6 +9,9 @@ SHELL_FILES ?= $(wildcard .*/*.sh */*.sh */*/*.sh)
all: install tests
player:
$(call make,stack-ipfs-$(if $(DELETE),down,up) USER=$(PLAYER),$(MYOS),IPFS_IDENTITY_PEERID IPFS_IDENTITY_PRIVKEY)
tests: shellcheck
shellcheck:

View File

@ -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" \
&& 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/.zen"
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"

View File

@ -10,7 +10,7 @@ cron() {
}
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() {