getting the bootstrap icons (not checking them in).

Split up instructions for working with agents.
This commit is contained in:
Erik Brakkee 2024-08-05 23:19:41 +02:00
parent 7e60e23df1
commit 95926c5896
2 changed files with 31 additions and 5 deletions

17
getbootstrapicons.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
cd $( dirname $0 )
set -e
tmpfile=/tmp/icons.zip.$$
trap "rm -f $tmpfile. exit" EXIT
curl --fail-with-body -L https://github.com/twbs/icons/releases/download/v1.11.3/bootstrap-icons-1.11.3.zip > $tmpfile
rm -rf static/icons
mkdir -p static/icons
cd static/icons
jar xvf "$tmpfile"
mv bootstrap-icons*/* .

View File

@ -90,32 +90,41 @@ templ AgentUsage(access models.ConvergeAccess, usageInputs UsageInputs) {
<h2>Working with the agent</h2>
if usageInputs.RemoteShells[BASH] {
<code-sammple id="session-bash">
<div>
<code-sample id="session-bash">
# cd back to the agent directory <br/>
cd $agentdir <br/>
<br/>
</code-sample>
<code-sample id="session-bash2">
# prevent logout when last user exits <br/>
touch $agentdir/.hold<br/>
</code-sammple>
</code-sample>
</div>
}
if usageInputs.RemoteShells[CMD] {
<div>
<code-sample id="session-cmd">
# cd back to the agent directory <br/>
cd %agentdir% <br/>
<br/>
</code-sample>
<code-sample id="session-cmd2">
# prevent logout when last user exits <br/>
echo > %agentdir%\.hold <br/>
</code-sample>
</div>
}
if usageInputs.RemoteShells[POWERSHELL] {
<div>
<code-sample id="session-powershell">
# cd back to the agent directory <br/>
cd $env:agentdir <br/>
<br/>
</code-sample>
<code-sample id="session-powershell2">
# prevent logout when last user exits <br/>
$null > $env:agentdir\.hold <br/>
</code-sample>
</div>
}
if usageInputs.RemoteShells[CMD] || usageInputs.RemoteShells[POWERSHELL] {
<p>