Skip to content

Commit

Permalink
Add missing port in nc-rsync-auto.sh (#983)
Browse files Browse the repository at this point in the history
Co-Authored-By: nachoparker <[email protected]>
  • Loading branch information
bhopmann and nachoparker committed Sep 2, 2019
1 parent abcd680 commit 830a1d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/ncp/BACKUPS/nc-rsync-auto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ configure()

[[ "$DESTINATION" =~ : ]] && {
local NET="$( sed 's|:.*||' <<<"$DESTINATION" )"
local SSH=( ssh -o "BatchMode=yes" "$NET" )
local SSH=( ssh -o "BatchMode=yes" -p "$PORTNUMBER" "$NET" )
${SSH[@]} : || { echo "SSH non-interactive not properly configured"; return 1; }
}

Expand Down
2 changes: 1 addition & 1 deletion bin/ncp/SYSTEM/nc-ramlogs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ install()
chmod +x install.sh && sudo ./install.sh
cd ..
rm -r log2ram-master log2ram.tar.gz
rm /etc/cron.hourly/log2ram /usr/local/bin/uninstall-log2ram.sh
rm /etc/cron.daily/log2ram /usr/local/bin/uninstall-log2ram.sh
}

configure()
Expand Down
3 changes: 1 addition & 2 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,7 @@ new_cfg=/usr/local/etc/ncp-recommended.cfg
echo -e "${msg}"
EOF
chmod +x /etc/update-motd.d/30ncp-dist-upgrade
}

}

exit 0

Expand Down

0 comments on commit 830a1d1

Please sign in to comment.