From 30df74fa6f543bfc93338dc2abad3c933bb0bc42 Mon Sep 17 00:00:00 2001 From: Melanie Pierce <59747276+piercema@users.noreply.github.com> Date: Thu, 30 Mar 2023 15:12:47 -0600 Subject: [PATCH] Add in htadmin backup configs for idaholab/Malcolm#169 --- htadmin/htadmin.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/htadmin/htadmin.sh b/htadmin/htadmin.sh index 8ab93a399..c9cb0de64 100644 --- a/htadmin/htadmin.sh +++ b/htadmin/htadmin.sh @@ -19,4 +19,12 @@ else EOF python3 -m http.server 80 popd >/dev/null 2>&1 -fi \ No newline at end of file +fi + +if [[ ! -f /var/www/htadmin/config/config.ini ]]; then + cp /var/www/htadmin/config/default/config.ini /var/www/htadmin/config/config.ini +fi + +if [[ ! -f /var/www/htadmin/config/metadata ]]; then + cp /var/www/htadmin/config/default/metadata /var/www/htadmin/config/metadata +fi