From a44725a8166e2a73323186a80b2bcdd5feaa882b Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Mon, 28 Sep 2020 05:19:40 +0000 Subject: [PATCH] fix journald on vultr --- install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index dd421502..71e832db 100755 --- a/install.sh +++ b/install.sh @@ -1,13 +1,13 @@ #!/bin/bash -SCRIPT_VERSION="7" +SCRIPT_VERSION="8" SCRIPT_URL='https://raw.githubusercontent.com/wh1te909/tacticalrmm/develop/install.sh' TMP_FILE=$(mktemp -p "" "rmminstall_XXXXXXXXXX") curl -s -L "${SCRIPT_URL}" > ${TMP_FILE} NEW_VER=$(grep "^SCRIPT_VERSION" "$TMP_FILE" | awk -F'[="]' '{print $3}') -if [ "${SCRIPT_VERSION}" \< "${NEW_VER}" ]; then +if [ "${SCRIPT_VERSION}" -ne "${NEW_VER}" ]; then printf >&2 "${YELLOW}A newer version of this installer script is available.${NC}\n" printf >&2 "${YELLOW}Please download the latest version from ${GREEN}${SCRIPT_URL}${YELLOW} and re-run.${NC}\n" rm -f $TMP_FILE @@ -27,6 +27,9 @@ if [ $EUID -eq 0 ]; then exit 1 fi +# prevents logging issues with some VPS providers like Vultr if this is a freshly provisioned instance that hasn't been rebooted yet +sudo systemctl restart systemd-journald.service + DJANGO_SEKRET=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 80 | head -n 1) SALTPW=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 20 | head -n 1) ADMINURL=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 70 | head -n 1)