diff --git a/gui/main.go b/gui/main.go index abf6d70..97e1aae 100644 --- a/gui/main.go +++ b/gui/main.go @@ -2332,7 +2332,7 @@ func _setupAdminUser(w http.ResponseWriter, r *http.Request) bool { msg := message[0 : len(message)-4] log.Printf("Message from server: '%s'", msg) lines := strings.Split(strings.TrimSpace(string(msg)), "\n") - reg.Errors["File"] = "Could not import backup file: " + lines[0] + reg.Errors["File"] = "Could not import backup file: " + lines[0] + "\nSee /opt/logs/commander.log in control container." render(w, r, "register:manage", map[string]interface{}{"User": reg, "IsLogin": true, "Progress": _progress("register"), "HelpText": _helptext("register")}) return false } @@ -2340,7 +2340,7 @@ func _setupAdminUser(w http.ResponseWriter, r *http.Request) bool { log.Printf("ERROR: Message from server: '%s'", message) lines := strings.Split(strings.TrimSpace(string(message)), "\n") - reg.Errors["File"] = "Could not import backup file: " + lines[0] + reg.Errors["File"] = "Could not import backup file: " + lines[0] + "\nSee /opt/logs/commander.log in control container." render(w, r, "register:manage", map[string]interface{}{"User": reg, "IsLogin": true, "Progress": _progress("register"), "HelpText": _helptext("register")}) return false } diff --git a/restore b/restore index 1fe0fe5..bffd749 100755 --- a/restore +++ b/restore @@ -15,7 +15,6 @@ tar xzf $FILE 2>&1 cd /opt/boulder [ -f $TMPDIR/boulder_sa_integration.sql ] || (echo "MySQL backup file not found"; exit 1) -sed -i -e "s/\(INSERT INTO \`gorp_migrations\`.*\)/-- \1/" $TMPDIR/boulder_sa_integration.sql docker compose exec bmysql mysql boulder_sa_integration <$TMPDIR/boulder_sa_integration.sql if [ -d $TMPDIR/nginx_ssl ]; then