From 3bf57382ce8d381e676e1bac0812a7724363ffda Mon Sep 17 00:00:00 2001 From: William Wernert Date: Tue, 3 Nov 2020 17:05:34 -0500 Subject: [PATCH] [fix] Change when /opt/so is removed --- setup/so-functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup/so-functions b/setup/so-functions index 6a76f85c3..802cf45e5 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1423,9 +1423,6 @@ reinstall_init() { info "Putting system in state to run setup again" { - # Remove /opt/so since we'll be rebuilding this directory during setup - rm -rf /opt/so - # Remove startup_states from minion config so we don't immediately highstate when salt starts back up sed -i '/startup_states/d' $minion_config @@ -1434,6 +1431,9 @@ reinstall_init() { # Stop all containers so files can be changed with more safety docker stop $(docker ps -a -q) + + # Remove /opt/so since we'll be rebuilding this directory during setup + rm -rf /opt/so } >> $setup_log 2>&1 }