Skip to content

Commit

Permalink
fix for int updater (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scitz0 committed Nov 29, 2020
1 parent d01a479 commit cb5d013
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/cnode-helper-scripts/cncli.sh
Expand Up @@ -254,7 +254,7 @@ cncliInit() {
printf '%s\n%s\n' "$STATIC_CMD" "$TEMPL2_CMD" > "${PARENT}"/cncli.sh.tmp
{
mv -f "${PARENT}"/cncli.sh.tmp "${PARENT}"/cncli.sh && \
chmod 750 "${PARENT}"/cncli.sh && \
chmod 755 "${PARENT}"/cncli.sh && \
echo -e "Update applied successfully!\n\nPlease run cncli again!" && \
exit 0;
} || {
Expand Down
3 changes: 2 additions & 1 deletion scripts/cnode-helper-scripts/prereqs.sh
Expand Up @@ -97,10 +97,11 @@ SUDO='Y';
[[ "${SUDO}" = 'Y' && $(id -u) -eq 0 ]] && err_exit "Please run as non-root user."

PARENT="$(dirname $0)"
if curl -s -m ${CURL_TIMEOUT} -o "${PARENT}"/prereqs.sh.tmp ${URL_RAW}/scripts/prereqs.sh 2>/dev/null; then
if curl -s -m ${CURL_TIMEOUT} -o "${PARENT}"/prereqs.sh.tmp ${URL_RAW}/scripts/cnode-helper-scripts/prereqs.sh 2>/dev/null; then
if ! cmp --silent "${PARENT}"/prereqs.sh "${PARENT}"/prereqs.sh.tmp; then
if get_answer "A new version of prereqs script available, do you want to download the latest version?"; then
mv -f "${PARENT}"/prereqs.sh.tmp "${PARENT}"/prereqs.sh
chmod 755 "${PARENT}"/prereqs.sh
echo -e "Update applied successfully!\n\nPlease re-run the script again!"
exit
fi
Expand Down

0 comments on commit cb5d013

Please sign in to comment.