Skip to content

Commit c65075b

Browse files
author
Martin Mrazik
committed
Add list of installed packages to logfile
1 parent eb911da commit c65075b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

enableagent.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ cd $dir
8484
sudo chmod -R 0775 $dir
8585
sudo chown -R AzDevOps:AzDevOps $dir
8686

87+
# Get list of currently installed packages
88+
# NOTE: will fail on non-debian systems
89+
# TO BE REMOVED
90+
log_message "Getting list of currently installed packages"
91+
dpkg -l >> "$LOGFILE"
92+
93+
8794
# install dependencies
8895
log_message "Installing dependencies"
8996
bash -x ./bin/installdependencies.sh 2>&1 | tee -a /var/log/enableagent.log

0 commit comments

Comments
 (0)