mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-20 08:52:59 +01:00
Compare commits
2 Commits
fix/docmos
...
CrazyWolf1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
de7af4217a | ||
|
|
112d9da829 |
@@ -48,17 +48,6 @@ function update_script() {
|
|||||||
cd /opt/docmost
|
cd /opt/docmost
|
||||||
mv /opt/.env /opt/docmost/.env
|
mv /opt/.env /opt/docmost/.env
|
||||||
mv /opt/data /opt/docmost/data
|
mv /opt/data /opt/docmost/data
|
||||||
|
|
||||||
# Fix: Docmost EE (audit logs etc.) lives in a git submodule that is NOT
|
|
||||||
# included in GitHub tarballs. The community NoopAuditService exists but
|
|
||||||
# is only exported by CoreModule – child modules such as UserModule cannot
|
|
||||||
# resolve it. Making CoreModule @Global() exposes the token app-wide.
|
|
||||||
if [[ ! -f /opt/docmost/apps/server/src/ee/ee.module.ts ]] \
|
|
||||||
&& ! grep -q '@Global()' /opt/docmost/apps/server/src/core/core.module.ts 2>/dev/null; then
|
|
||||||
sed -i '/^ Module,$/a\ Global,' /opt/docmost/apps/server/src/core/core.module.ts
|
|
||||||
sed -i '/^@Module({$/i @Global()' /opt/docmost/apps/server/src/core/core.module.ts
|
|
||||||
fi
|
|
||||||
|
|
||||||
$STD pnpm install --force
|
$STD pnpm install --force
|
||||||
$STD pnpm build
|
$STD pnpm build
|
||||||
msg_ok "Updated ${APP}"
|
msg_ok "Updated ${APP}"
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
PYTHON_VERSION="3.12" setup_uv
|
PYTHON_VERSION="3.12" setup_uv
|
||||||
JAVA_VERSION="21" setup_java
|
JAVA_VERSION="25" setup_java
|
||||||
|
|
||||||
msg_info "Stopping Services"
|
msg_info "Stopping Services"
|
||||||
systemctl stop stirlingpdf libreoffice-listener unoserver
|
systemctl stop stirlingpdf libreoffice-listener unoserver
|
||||||
|
|||||||
@@ -26,17 +26,6 @@ fetch_and_deploy_gh_release "docmost" "docmost/docmost" "tarball"
|
|||||||
|
|
||||||
msg_info "Configuring Docmost (Patience)"
|
msg_info "Configuring Docmost (Patience)"
|
||||||
cd /opt/docmost
|
cd /opt/docmost
|
||||||
|
|
||||||
# Fix: Docmost EE (audit logs etc.) lives in a git submodule that is NOT
|
|
||||||
# included in GitHub tarballs. The community NoopAuditService exists but
|
|
||||||
# is only exported by CoreModule – child modules such as UserModule cannot
|
|
||||||
# resolve it. Making CoreModule @Global() exposes the token app-wide.
|
|
||||||
if [[ ! -f /opt/docmost/apps/server/src/ee/ee.module.ts ]] \
|
|
||||||
&& ! grep -q '@Global()' /opt/docmost/apps/server/src/core/core.module.ts 2>/dev/null; then
|
|
||||||
sed -i '/^ Module,$/a\ Global,' /opt/docmost/apps/server/src/core/core.module.ts
|
|
||||||
sed -i '/^@Module({$/i @Global()' /opt/docmost/apps/server/src/core/core.module.ts
|
|
||||||
fi
|
|
||||||
|
|
||||||
mv .env.example .env
|
mv .env.example .env
|
||||||
mkdir data
|
mkdir data
|
||||||
sed -i -e "s|APP_SECRET=.*|APP_SECRET=$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | cut -c1-32)|" \
|
sed -i -e "s|APP_SECRET=.*|APP_SECRET=$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | cut -c1-32)|" \
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ $STD apt install -y \
|
|||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
PYTHON_VERSION="3.12" setup_uv
|
PYTHON_VERSION="3.12" setup_uv
|
||||||
JAVA_VERSION="21" setup_java
|
JAVA_VERSION="25" setup_java
|
||||||
|
|
||||||
read -r -p "${TAB3}Do you want to use Stirling-PDF with Login? (no/n = without Login) [Y/n] " response
|
read -r -p "${TAB3}Do you want to use Stirling-PDF with Login? (no/n = without Login) [Y/n] " response
|
||||||
response=${response,,} # Convert to lowercase
|
response=${response,,} # Convert to lowercase
|
||||||
|
|||||||
Reference in New Issue
Block a user