Misc fixes

This commit is contained in:
Radon Rosborough 2021-08-15 12:18:59 -07:00
parent bfd4d4d052
commit 02ff4aaaef
3 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,7 @@ import { spawn } from "child_process";
import os from "os";
import process from "process";
import * as Sentry from "@sentry/node";
import { v4 as getUUIDOrig } from "uuid";
let sentryEnabled = false;

View File

@ -62,7 +62,7 @@ sudo sed -Ei "s/\\\$AWS_REGION/${AWS_REGION}/" /etc/systemd/system/riju.service
sudo sed -Ei "s/\\\$FATHOM_SITE_ID/${FATHOM_SITE_ID:-}/" /etc/systemd/system/riju.service
sudo sed -Ei "s/\\\$S3_BUCKET/${S3_BUCKET}/" /etc/systemd/system/riju.service
sudo sed -Ei "s/\\\$SENTRY_DSN/${SENTRY_DSN:-}/" /etc/systemd/system/riju.service
sudo sed -Ei "s/\\\$SUPERVISOR_ACCESS_TOKEN/${SUPERVISOR_ACCESS_TOKEN}/" /etc/systemd/system/riju.service
sudo sed -Ei "s|\\\$SUPERVISOR_ACCESS_TOKEN|${SUPERVISOR_ACCESS_TOKEN}|" /etc/systemd/system/riju.service
sudo passwd -l root
sudo useradd admin -g admin -G sudo -s /usr/bin/bash -p "$(echo "${ADMIN_PASSWORD}" | mkpasswd -s)" -m

View File

@ -322,7 +322,6 @@ func (sv *supervisor) reload() error {
deployCfgHash := fmt.Sprintf("%x", h.Sum(nil))
if deployCfgHash == sv.deployConfigHash {
sv.status(fmt.Sprintf("config hash remains at %s", deployCfgHash))
return nil
} else {
sv.status(fmt.Sprintf(
"config hash updated %s => %s",