Update documenso-install.sh

This commit is contained in:
CanbiZ 2025-04-14 12:20:19 +02:00
parent c95479bb8c
commit 0e08b4fb50

View File

@ -5,7 +5,7 @@
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/documenso/documenso # Source: https://github.com/documenso/documenso
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors catch_errors
@ -15,17 +15,17 @@ update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y \ $STD apt-get install -y \
gpg \ gpg \
libc6 \ libc6 \
curl \ curl \
sudo \ sudo \
make \ make \
cmake \ cmake \
mc \ mc \
jq \ jq \
postgresql \ postgresql \
python3 \ python3 \
python3-bcrypt python3-bcrypt
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository" msg_info "Setting up Node.js Repository"
@ -54,7 +54,7 @@ $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC'"
echo "Database Name: $DB_NAME" echo "Database Name: $DB_NAME"
echo "Database User: $DB_USER" echo "Database User: $DB_USER"
echo "Database Password: $DB_PASS" echo "Database Password: $DB_PASS"
} >> ~/documenso.creds } >>~/documenso.creds
msg_ok "Set up PostgreSQL" msg_ok "Set up PostgreSQL"
msg_info "Installing Documenso (Patience)" msg_info "Installing Documenso (Patience)"
@ -98,7 +98,7 @@ After=network.target postgresql.service
[Service] [Service]
WorkingDirectory=/opt/documenso/apps/web WorkingDirectory=/opt/documenso/apps/web
ExecStart=/usr/bin/next start -p 3500 ExecStart=/usr/bin/npm start
Restart=always Restart=always
EnvironmentFile=/opt/documenso/.env EnvironmentFile=/opt/documenso/.env
@ -114,4 +114,4 @@ customize
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get -y autoremove $STD apt-get -y autoremove
$STD apt-get -y autoclean $STD apt-get -y autoclean
msg_ok "Cleaned" msg_ok "Cleaned"