mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-15 19:59:41 +00:00
[core] Rebase Scripts (formatting, highlighting & remove old deps) (#3378)
* Big Refactor: Remove Deps / Formatting & Correct End Of Line Sequence * f
This commit is contained in:
parent
316a6716b0
commit
2306531021
290 changed files with 794 additions and 1891 deletions
|
@ -5,7 +5,7 @@
|
|||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://couchdb.apache.org/
|
||||
|
||||
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
|
@ -14,9 +14,6 @@ network_check
|
|||
update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt-get install -y curl
|
||||
$STD apt-get install -y sudo
|
||||
$STD apt-get install -y mc
|
||||
$STD apt-get install -y apt-transport-https
|
||||
$STD apt-get install -y gnupg
|
||||
msg_ok "Installed Dependencies"
|
||||
|
@ -24,11 +21,11 @@ msg_ok "Installed Dependencies"
|
|||
msg_info "Installing Apache CouchDB"
|
||||
ERLANG_COOKIE=$(openssl rand -base64 32)
|
||||
ADMIN_PASS="$(openssl rand -base64 18 | cut -c1-13)"
|
||||
debconf-set-selections <<< "couchdb couchdb/cookie string $ERLANG_COOKIE"
|
||||
debconf-set-selections <<< "couchdb couchdb/mode select standalone"
|
||||
debconf-set-selections <<< "couchdb couchdb/bindaddress string 0.0.0.0"
|
||||
debconf-set-selections <<< "couchdb couchdb/adminpass password $ADMIN_PASS"
|
||||
debconf-set-selections <<< "couchdb couchdb/adminpass_again password $ADMIN_PASS"
|
||||
debconf-set-selections <<<"couchdb couchdb/cookie string $ERLANG_COOKIE"
|
||||
debconf-set-selections <<<"couchdb couchdb/mode select standalone"
|
||||
debconf-set-selections <<<"couchdb couchdb/bindaddress string 0.0.0.0"
|
||||
debconf-set-selections <<<"couchdb couchdb/adminpass password $ADMIN_PASS"
|
||||
debconf-set-selections <<<"couchdb couchdb/adminpass_again password $ADMIN_PASS"
|
||||
curl -fsSL https://couchdb.apache.org/repo/keys.asc | gpg --dearmor -o /usr/share/keyrings/couchdb-archive-keyring.gpg
|
||||
VERSION_CODENAME="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)"
|
||||
echo "deb [signed-by=/usr/share/keyrings/couchdb-archive-keyring.gpg] https://apache.jfrog.io/artifactory/couchdb-deb/ ${VERSION_CODENAME} main" >/etc/apt/sources.list.d/couchdb.sources.list
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue