mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-07-14 18:07:37 +00:00
Refactor: Remove redundant dependencies & unify unzip usage (#4780)
* refactor unzip / remove dep * remove deps from alpine packages * remove gnupg * remove gnupg
This commit is contained in:
@ -15,11 +15,10 @@ update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt-get install -y \
|
||||
nginx \
|
||||
php8.2-fpm \
|
||||
php8.2-{common,cli,gd,mbstring,xml,fpm,curl,zip} \
|
||||
unzip \
|
||||
openssl
|
||||
nginx \
|
||||
php8.2-fpm \
|
||||
php8.2-{common,cli,gd,mbstring,xml,fpm,curl,zip} \
|
||||
openssl
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
msg_info "Installing PrivateBin"
|
||||
@ -28,16 +27,16 @@ echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
||||
mkdir -p /opt/privatebin
|
||||
cd /opt/privatebin
|
||||
curl -fsSL "https://github.com/PrivateBin/PrivateBin/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/PrivateBin/PrivateBin/archive/refs/tags/${RELEASE}.zip")
|
||||
$STD unzip -q ${RELEASE}.zip
|
||||
$STD unzip ${RELEASE}.zip
|
||||
mv PrivateBin-${RELEASE}/* .
|
||||
msg_ok "Installed PrivateBin"
|
||||
|
||||
msg_info "Generating Universal SSL Certificate"
|
||||
mkdir -p /etc/ssl/privatebin
|
||||
$STD openssl req -x509 -nodes -days 3650 -newkey rsa:2048 \
|
||||
-keyout /etc/ssl/privatebin/key.pem \
|
||||
-out /etc/ssl/privatebin/cert.pem \
|
||||
-subj "/CN=PrivateBin"
|
||||
-keyout /etc/ssl/privatebin/key.pem \
|
||||
-out /etc/ssl/privatebin/cert.pem \
|
||||
-subj "/CN=PrivateBin"
|
||||
msg_ok "Certificate Generated"
|
||||
|
||||
msg_info "Configuring Environment"
|
||||
|
Reference in New Issue
Block a user