mirror of
https://github.com/tschettervictor/bsd-apps.git
synced 2025-12-11 09:30:00 +01:00
Update onlyoffice-install.sh - minor edits
This commit is contained in:
@@ -1,12 +1,6 @@
|
||||
#!/bin/sh
|
||||
# Install OnlyOffice Document Server
|
||||
|
||||
# Check for Root Privileges
|
||||
if ! [ $(id -u) = 0 ]; then
|
||||
echo "This script must be run with root privileges"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
APP_NAME="OnlyOffice"
|
||||
DB_TYPE="PostgreSQL"
|
||||
DB_NAME="onlyoffice"
|
||||
@@ -18,6 +12,12 @@ RABBITMQ_PASSWORD=$(openssl rand -base64 15)
|
||||
JWT_SECRET=$(openssl rand -base64 20)
|
||||
PG_VERSION="15"
|
||||
|
||||
# Check for Root Privileges
|
||||
if ! [ $(id -u) = 0 ]; then
|
||||
echo "This script must be run with root privileges"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Install Packages
|
||||
pkg install -y onlyoffice-documentserver postgresql"${PG_VERSION}"-server postgresql"${PG_VERSION}"-client
|
||||
|
||||
@@ -93,6 +93,7 @@ echo "JWT secret is ${JWT_SECRET}." >> /root/${APP_NAME}-Info.txt
|
||||
# Done
|
||||
echo "---------------"
|
||||
echo "Installation complete."
|
||||
echo "${APP_NAME} is running on port 80"
|
||||
echo "---------------"
|
||||
echo "Database Information"
|
||||
echo "$DB_TYPE Username: root"
|
||||
|
||||
Reference in New Issue
Block a user