-
-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathsetup.sh
More file actions
35 lines (32 loc) · 1.15 KB
/
setup.sh
File metadata and controls
35 lines (32 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
#
# SPDX-FileCopyrightText: 2024 LibreCode coop and contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
#
(
. /var/www/scripts/entrypoint.sh && php-fpm --daemonize
)
git config --global --add safe.directory /var/www/html
git config --global --add safe.directory /var/www/html/apps-extra/libresign
cd /var/www/html/apps-extra/libresign
git submodule update --init --recursive
if [[ ! -d "vendor" ]]; then
composer install
fi
occ app:enable libresign
occ libresign:install --use-local-cert --java
occ libresign:install --use-local-cert --pdftk
occ libresign:install --use-local-cert --jsignpdf
occ libresign:configure:openssl --cn=CommonName --c=BR --ou=OrganizationUnit --st=RioDeJaneiro --o=LibreSign --l=RioDeJaneiro
if [[ ! -d "node_modules" ]]; then
occ theming:config name "LibreSign"
occ theming:config url "https://libresign.coop"
occ theming:config primary_color "#144042"
occ config:app:set libresign extra_settings --value=1
occ config:system:set defaultapp --value libresign
occ maintenance:theme:update
npm ci
npm run dev
fi
echo "✍️ LibreSign is up!"
echo "If you want to develop at frontend, run the command 'npm run watch'"