getting the bootstrap icons (not checking them in).
Split up instructions for working with agents.
This commit is contained in:
parent
7e60e23df1
commit
95926c5896
17
getbootstrapicons.sh
Executable file
17
getbootstrapicons.sh
Executable 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*/* .
|
||||||
|
|
@ -90,32 +90,41 @@ templ AgentUsage(access models.ConvergeAccess, usageInputs UsageInputs) {
|
|||||||
<h2>Working with the agent</h2>
|
<h2>Working with the agent</h2>
|
||||||
|
|
||||||
if usageInputs.RemoteShells[BASH] {
|
if usageInputs.RemoteShells[BASH] {
|
||||||
<code-sammple id="session-bash">
|
<div>
|
||||||
|
<code-sample id="session-bash">
|
||||||
# cd back to the agent directory <br/>
|
# cd back to the agent directory <br/>
|
||||||
cd $agentdir <br/>
|
cd $agentdir <br/>
|
||||||
<br/>
|
</code-sample>
|
||||||
|
<code-sample id="session-bash2">
|
||||||
# prevent logout when last user exits <br/>
|
# prevent logout when last user exits <br/>
|
||||||
touch $agentdir/.hold<br/>
|
touch $agentdir/.hold<br/>
|
||||||
</code-sammple>
|
</code-sample>
|
||||||
|
</div>
|
||||||
|
|
||||||
}
|
}
|
||||||
if usageInputs.RemoteShells[CMD] {
|
if usageInputs.RemoteShells[CMD] {
|
||||||
|
<div>
|
||||||
<code-sample id="session-cmd">
|
<code-sample id="session-cmd">
|
||||||
# cd back to the agent directory <br/>
|
# cd back to the agent directory <br/>
|
||||||
cd %agentdir% <br/>
|
cd %agentdir% <br/>
|
||||||
<br/>
|
</code-sample>
|
||||||
|
<code-sample id="session-cmd2">
|
||||||
# prevent logout when last user exits <br/>
|
# prevent logout when last user exits <br/>
|
||||||
echo > %agentdir%\.hold <br/>
|
echo > %agentdir%\.hold <br/>
|
||||||
</code-sample>
|
</code-sample>
|
||||||
|
</div>
|
||||||
}
|
}
|
||||||
if usageInputs.RemoteShells[POWERSHELL] {
|
if usageInputs.RemoteShells[POWERSHELL] {
|
||||||
|
<div>
|
||||||
<code-sample id="session-powershell">
|
<code-sample id="session-powershell">
|
||||||
# cd back to the agent directory <br/>
|
# cd back to the agent directory <br/>
|
||||||
cd $env:agentdir <br/>
|
cd $env:agentdir <br/>
|
||||||
<br/>
|
</code-sample>
|
||||||
|
<code-sample id="session-powershell2">
|
||||||
# prevent logout when last user exits <br/>
|
# prevent logout when last user exits <br/>
|
||||||
$null > $env:agentdir\.hold <br/>
|
$null > $env:agentdir\.hold <br/>
|
||||||
</code-sample>
|
</code-sample>
|
||||||
|
</div>
|
||||||
}
|
}
|
||||||
if usageInputs.RemoteShells[CMD] || usageInputs.RemoteShells[POWERSHELL] {
|
if usageInputs.RemoteShells[CMD] || usageInputs.RemoteShells[POWERSHELL] {
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
Reference in New Issue
Block a user