});
}
- /* Copy Script button on /download/linux/debian and /download/linux/ubuntu */
+ /* Copy Script buttons on /download/linux/debian and /download/linux/ubuntu */
if (document.getElementById("copy-btn") && document.getElementById("script-box")) {
document.getElementById('copy-btn').addEventListener('click', function () {
copyScript(this, 'script-box');
});
}
+ if (document.getElementById("copy-btn2") && document.getElementById("script-box2")) {
+ document.getElementById('copy-btn2').addEventListener('click', function () {
+ copyScript(this, 'script-box2');
+ });
+ }
}
document.addEventListener("DOMContentLoaded", setupHandlers);
</p>
<div class="pg-script-container">
- <pre id="script-box" class="code"># Import the repository signing key:
+ <pre id="script-box2" class="code"># Import the repository signing key:
sudo apt install curl ca-certificates
sudo install -d /usr/share/postgresql-common/pgdg
sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
# Install the latest version of PostgreSQL:
# If you want a specific version, use 'postgresql-16' or similar instead of 'postgresql'
sudo apt -y install postgresql</pre>
- <button id="copy-btn" class="pg-script-copy-btn">Copy Script</button>
+ <button id="copy-btn2" class="pg-script-copy-btn">Copy Script</button>
</div>
<p>
</p>
<div class="pg-script-container">
- <pre id="script-box" class="code"># Import the repository signing key:
+ <pre id="script-box2" class="code"># Import the repository signing key:
sudo apt install curl ca-certificates
sudo install -d /usr/share/postgresql-common/pgdg
sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
# Install the latest version of PostgreSQL:
# If you want a specific version, use 'postgresql-16' or similar instead of 'postgresql'
sudo apt -y install postgresql</pre>
- <button id="copy-btn" class="pg-script-copy-btn">Copy Script</button>
+ <button id="copy-btn2" class="pg-script-copy-btn">Copy Script</button>
</div>
<p>