Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
initramfs-with-mca
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
initramfs-with-mca
Commits
83147598
Commit
83147598
authored
Jul 04, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
installation/automation-script.sh: Redirect all the output to a log file (append mode).
parent
9945632b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
installation/automation-script.sh
installation/automation-script.sh
+11
-0
No files found.
installation/automation-script.sh
View file @
83147598
...
...
@@ -4,6 +4,10 @@
# It automates the process of installing MCA on a KVM.
# It then scans some desired directories. No need to reboot to get a scan.
LOG_FILE
=
/var/log/test-script-deployment.log
# redirect stdout and stderr to $LOG_FILE
exec
>>
$LOG_FILE
2>&1
### INSTALL DEPENDENCIES
WENDELIN_REFERENCE
=
test-suite-001
...
...
@@ -27,13 +31,16 @@ FLB_PATH=/opt/${FLUENTBIT_NAME_AND_VERSION}
MCA_PATH
=
/opt/
${
MCA_NAME_AND_VERSION
}
MCA_CONF_PATH
=
${
MCA_PATH
}
/etc/
echo
-e
"
\n
Installing packages from Debian repositories...
\n
"
# utility packages
apt
-y
install
${
APT_UTILITY_PACKAGES
}
# specific packages
apt
-y
install
${
APT_SPECIFIC_PACKAGES
}
# our own packages
echo
-e
"
\n
Downloading packages from OBS repositories...
\n
"
wget
${
MCA_PACKAGE_URL
}
wget
${
FLUENTBIT_PACKAGE_URL
}
echo
-e
"
\n
Installing packages from OBS repositories...
\n
"
apt
-y
install
./
${
MCA_PACKAGE_FILE
}
apt
-y
install
./
${
FLUENTBIT_PACKAGE_FILE
}
...
...
@@ -71,7 +78,11 @@ FLB_CONF=${MCA_PATH}/etc/flb.conf
LOG
=
/var/log/metadata_collect.log
PATH_TO_SCAN
=
/bin
echo
-e
"
\n
Scanning and sending content in
$PATH_TO_SCAN
...
\n
"
${
BINARY
}
${
PATH_TO_SCAN
}
${
FLB
}
${
FLB_PLUGIN
}
${
FLB_CONF
}
${
LOG
}
PATH_TO_SCAN
=
/sbin
echo
-e
"
\n
Scanning and sending content in
$PATH_TO_SCAN
...
\n
"
${
BINARY
}
${
PATH_TO_SCAN
}
${
FLB
}
${
FLB_PLUGIN
}
${
FLB_CONF
}
${
LOG
}
echo
-e
"
\n
Build successful, connect to:
\n
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment