fix: document git-free plugin installation
This commit is contained in:
@@ -9,9 +9,16 @@
|
||||
<section class="shell prose-shell install-guide">
|
||||
<aside class="notice"><strong>Vorher sichern:</strong> Erstelle ein Backup von NetBox und der Datenbank. Führe die Befehle auf dem NetBox-Host aus.</aside>
|
||||
<h2>1. Plugin aus git.mrblake.cc installieren</h2>
|
||||
<p>Trage das Plugin dauerhaft in <code>/opt/netbox/local_requirements.txt</code> ein. Für reproduzierbare Installationen solltest du <code>main</code> durch einen geprüften Commit-SHA ersetzen.</p>
|
||||
<pre><code>sudo sh -c 'printf "%s\n" "netbox-plugin-store @ git+https://git.mrblake.cc/MrBlake/Netbox-Store.git@main#subdirectory=netbox_plugin" >> /opt/netbox/local_requirements.txt'
|
||||
<p>Trage das Plugin dauerhaft in <code>/opt/netbox/local_requirements.txt</code> ein. Die empfohlene HTTPS-Archivvariante benötigt kein lokal installiertes Git. Für reproduzierbare Installationen solltest du <code>main</code> durch einen geprüften Commit-SHA ersetzen.</p>
|
||||
<pre><code>sudo sh -c 'line="netbox-plugin-store @ https://git.mrblake.cc/MrBlake/Netbox-Store/archive/main.tar.gz#subdirectory=netbox_plugin"; grep -Fqx "$line" /opt/netbox/local_requirements.txt || printf "%s\n" "$line" >> /opt/netbox/local_requirements.txt'
|
||||
sudo /opt/netbox/upgrade.sh</code></pre>
|
||||
<h3>Alternative mit Git</h3>
|
||||
<p>Wenn du stattdessen eine <code>git+https</code>-Requirement verwendest, muss das Programm <code>git</code> vor dem NetBox-Upgrade installiert sein:</p>
|
||||
<pre><code>sudo apt update
|
||||
sudo apt install -y git
|
||||
|
||||
# Requirement:
|
||||
netbox-plugin-store @ git+https://git.mrblake.cc/MrBlake/Netbox-Store.git@main#subdirectory=netbox_plugin</code></pre>
|
||||
<h2>2. Plugin in NetBox aktivieren</h2>
|
||||
<p>Ergänze die NetBox-Konfiguration:</p>
|
||||
<pre><code>PLUGINS = [
|
||||
|
||||
Reference in New Issue
Block a user