Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo committed Aug 26, 2021
1 parent 55a58ad commit 677393e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions scripts/dappnode_access_credentials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@ function wifi_connection () {
}

function avahi_connection () {
# Ping to avahi endpoint: -c: number of pings. -w: timeout
avahi-resolve -n $AVAHI_ENDPOINT > /dev/null 2>&1 && \
# Https container exists
# shellcheck disable=SC2143
[ "$(docker ps -a | grep ${HTTPS_CONTAINER})" ] && \
# Https container running
[ "$(docker inspect -f '{{.State.Running}}' ${HTTPS_CONTAINER})" = "true" ] && \
Expand Down
3 changes: 2 additions & 1 deletion scripts/dappnode_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ SWGET="wget -q -O-"
# Other
CONTENT_HASH_PKGS=(geth openethereum nethermind)
ARCH=$(dpkg --print-architecture)
HELP_MESSAGE="echo -e '\nChoose a way to connect to your DAppNode, then go to \e[1mhttp://my.dappnode\e[0m\n\n\e[1m- Wifi\e[0m\t\tScan and connect to DAppNodeWIFI. Get wifi credentials with \e[32mdappnode_wifi\e[0m\n\n\e[1m- Local Proxy\e[0m\tConnect to the same router as your DAppNode. Then go to \e[1mhttp://dappnode.local\e[0m\n\n\e[1m- Wireguard\e[0m\tDownload Wireguard app on your device. Get your dappnode wireguard credentials with \e[32mdappnode_wireguard\e[0m\n\n\e[1m- Open VPN\e[0m\tDownload OPen VPN app on your device. Get your openVPN creds with \e[32mdappnode_openvpn\e[0m\n\n\nTo see a full list of commands available execute \e[32mdappnode_help\e[0m\n'"
WELCOME_MESSAGE="echo -e '\nChoose a way to connect to your DAppNode, then go to \e[1mhttp://my.dappnode\e[0m\n\n\e[1m- Wifi\e[0m\t\tScan and connect to DAppNodeWIFI. Get wifi credentials with \e[32mdappnode_wifi\e[0m\n\n\e[1m- Local Proxy\e[0m\tConnect to the same router as your DAppNode. Then go to \e[1mhttp://dappnode.local\e[0m\n\n\e[1m- Wireguard\e[0m\tDownload Wireguard app on your device. Get your dappnode wireguard credentials with \e[32mdappnode_wireguard\e[0m\n\n\e[1m- Open VPN\e[0m\tDownload OPen VPN app on your device. Get your openVPN creds with \e[32mdappnode_openvpn\e[0m\n\n\nTo see a full list of commands available execute \e[32mdappnode_help\e[0m\n'"

# Clean if update
if [ "$UPDATE" = true ]; then
Expand Down Expand Up @@ -236,6 +236,7 @@ dappnode_start() {
sed -i '/return/d' $DAPPNODE_PROFILE | tee -a $LOGFILE

# Append welcome message execution at end of profile
# shellcheck disable=SC1003
sed -i '$a\'"${WELCOME_MESSAGE}"'' $DAPPNODE_PROFILE

# Download access_credentials script
Expand Down

0 comments on commit 677393e

Please sign in to comment.