File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
tests_e2e/orchestrator/scripts Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -101,12 +101,6 @@ if [ $started == false ]; then
101
101
exit 1
102
102
fi
103
103
104
- #
105
- # Install the package
106
- #
107
- echo " ========== Installing Agent =========="
108
- echo " Installing $package as version $version ..."
109
- unzip.py " $package " " /var/lib/waagent/WALinuxAgent-$version "
110
104
111
105
python=$( get-agent-python)
112
106
# Ensure that AutoUpdate is enabled. some distros, e.g. Flatcar have a waagent.conf in different path
@@ -162,14 +156,21 @@ if [[ $(uname -a) == *"flatcar"* ]]; then
162
156
fi
163
157
164
158
#
165
- # Restart the service
159
+ # Install the package
166
160
#
167
- echo " Restarting service..."
161
+ echo " ========== Installing Agent =========="
162
+
168
163
agent-service stop
169
164
170
165
# Rename the previous log to ensure the new log starts with the agent we just installed
171
166
mv /var/log/waagent.log /var/log/waagent." $( date --iso-8601=seconds) " .log
172
167
168
+ echo " Cleaning up the existing agents"
169
+ rm -rfv /var/lib/waagent/WALinuxAgent-*
170
+
171
+ echo " Installing $package as version $version ..."
172
+ unzip.py " $package " " /var/lib/waagent/WALinuxAgent-$version "
173
+
173
174
agent-service start
174
175
175
176
#
You can’t perform that action at this time.
0 commit comments