Skip to content

Commit

Permalink
Update welcome page (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
romandemidov authored Sep 9, 2021
1 parent 747ffdd commit db80110
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 220 deletions.
26 changes: 15 additions & 11 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,21 @@ parts:
plugin: dump
source: src/common/

ds-package:
plugin: nil
source: https://github.com/ONLYOFFICE/document-server-package.git
source-type: git
override-build: |
snapcraftctl build
#welcome page
mkdir -p $SNAPCRAFT_PART_INSTALL/var/www/onlyoffice/documentserver/server/welcome
cp -r common/documentserver-example/welcome/css $SNAPCRAFT_PART_INSTALL/var/www/onlyoffice/documentserver/server/welcome
cp common/documentserver-example/welcome/linux.html $SNAPCRAFT_PART_INSTALL/var/www/onlyoffice/documentserver/server/welcome/index.html
sed -i -e 's/{{OFFICIAL_PRODUCT_NAME}}/Community Edition/' $SNAPCRAFT_PART_INSTALL/var/www/onlyoffice/documentserver/server/welcome/index.html
sed -i -e 's/sudo supervisorctl start ds:example/sudo snap set onlyoffice-ds onlyoffice.example-enabled=true/' $SNAPCRAFT_PART_INSTALL/var/www/onlyoffice/documentserver/server/welcome/index.html
sed -i -e '/<h3>Add it to the autostart/d' $SNAPCRAFT_PART_INSTALL/var/www/onlyoffice/documentserver/server/welcome/index.html
sed -i -e '/<pre>sudo sed/d' $SNAPCRAFT_PART_INSTALL/var/www/onlyoffice/documentserver/server/welcome/index.html
starter:
plugin: dump
Expand All @@ -292,14 +307,3 @@ parts:
rabbitmq-env-start.sh: usr/lib/rabbitmq/bin/rabbitmq-env-start.sh
nginx-start.sh: usr/sbin/nginx-start.sh
generate-all-fonts.sh: usr/sbin/generate-all-fonts.sh

welcome:
plugin: dump
source: ./welcome/
organize:
index.html: var/www/onlyoffice/documentserver/server/welcome/index.html
css/favicon.ico: var/www/onlyoffice/documentserver/server/welcome/css/favicon.ico
css/logo.png: var/www/onlyoffice/documentserver/server/welcome/css/logo.png
css/[email protected]: var/www/onlyoffice/documentserver/server/welcome/css/[email protected]
css/stylesheet.css: var/www/onlyoffice/documentserver/server/welcome/css/stylesheet.css

Binary file removed welcome/css/favicon.ico
Binary file not shown.
Binary file removed welcome/css/logo.png
Binary file not shown.
Binary file removed welcome/css/[email protected]
Binary file not shown.
129 changes: 0 additions & 129 deletions welcome/css/stylesheet.css

This file was deleted.

80 changes: 0 additions & 80 deletions welcome/index.html

This file was deleted.

0 comments on commit db80110

Please sign in to comment.