From 3566132c18cc397c4a1c1848e753a9acd4a4c1f6 Mon Sep 17 00:00:00 2001 From: cimryan Date: Tue, 23 Oct 2018 22:20:35 -0700 Subject: [PATCH] Set archiveserver in rc.local. --- windows_archive/setup-teslausb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/windows_archive/setup-teslausb b/windows_archive/setup-teslausb index b6300ce..edee190 100644 --- a/windows_archive/setup-teslausb +++ b/windows_archive/setup-teslausb @@ -141,6 +141,8 @@ function configure_rc_local () { echo "Configuring /etc/rc.local to run the archive scripts at startup..." echo "#!/bin/bash -eu" > ~/rc.local tail -n +2 /etc/rc.local | sed '$d' >> ~/rc.local + + echo "archiveserver=\"${archiveserver}\"" >> ~/rc.local cat << 'EOF' >> ~/rc.local LOGFILE=/tmp/rc.local.log