1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snserver_ynh.git synced 2024-09-03 20:26:22 +02:00

Merge pull request #51 from YunoHost-Apps/testing

2021.10.29~ynh1
This commit is contained in:
Fabian Wilkens 2021-10-30 20:47:07 +02:00 committed by GitHub
commit d67fe4d242
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 51 additions and 50 deletions

View file

@ -8,7 +8,7 @@ on:
workflow_dispatch: workflow_dispatch:
# Run it every day at 6:00 UTC # Run it every day at 6:00 UTC
schedule: schedule:
- cron: '0 6 * * *' - cron: '0 6 * * 1'
jobs: jobs:
updater: updater:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -17,22 +17,20 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
The Standard Notes syncing server. An end-to-end encrypted note-taking app. The Standard Notes syncing server. An end-to-end encrypted note-taking app.
**Shipped version:** 2021.09.09~ynh1 **Shipped version:** 2021.10.29~ynh1
**Demo:** https://standardnotes.org/demo **Demo:** https://standardnotes.org/demo
## Disclaimers / important information ## Disclaimers / important information
* Any known limitations, constrains or stuff not working, such as (but not limited to): * No single-sign on or LDAP integration
* No single-sign on or LDAP integration * Ram requirements (Swap memory will be created during install):
* Ram requirements (Swap memory will be created during install):
* The app requires at least 800MB of RAM to work properly. * The app requires at least 800MB of RAM to work properly.
* The app requires at least 1000MB of RAM to start. * The app requires at least 1000MB of RAM to start.
* The app requires at least 1500MB of RAM to install. * The app requires at least 1500MB of RAM to install.
* Other infos that people should be aware of, such as: * The ".env" config-files are stored under "/opt/yunohost/$app/live/"
* The ".env" config-files are stored under "/opt/yunohost/$app/live/" * You can change the url of this app, but than all useres have to reinstall the extensions.
* You can change the url of this app, but than all useres have to reinstall the extensions.
## Documentation and resources ## Documentation and resources

View file

@ -13,22 +13,20 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
**Version incluse :** 2021.09.09~ynh1 **Version incluse :** 2021.10.29~ynh1
**Démo :** https://standardnotes.org/demo **Démo :** https://standardnotes.org/demo
## Avertissements / informations importantes ## Avertissements / informations importantes
* Any known limitations, constrains or stuff not working, such as (but not limited to): * No single-sign on or LDAP integration
* No single-sign on or LDAP integration * Ram requirements (Swap memory will be created during install):
* Ram requirements (Swap memory will be created during install):
* The app requires at least 800MB of RAM to work properly. * The app requires at least 800MB of RAM to work properly.
* The app requires at least 1000MB of RAM to start. * The app requires at least 1000MB of RAM to start.
* The app requires at least 1500MB of RAM to install. * The app requires at least 1500MB of RAM to install.
* Other infos that people should be aware of, such as: * The ".env" config-files are stored under "/opt/yunohost/$app/live/"
* The ".env" config-files are stored under "/opt/yunohost/$app/live/" * You can change the url of this app, but than all useres have to reinstall the extensions.
* You can change the url of this app, but than all useres have to reinstall the extensions.
## Documentations et ressources ## Documentations et ressources

View file

@ -15,9 +15,9 @@
setup_private=0 setup_private=0
setup_public=1 setup_public=1
upgrade=1 upgrade=1
# 2021.07.24~yhn3 # 2021.09.09~yhn1
upgrade=1 from_commit=426dd68db71fda8aa61269928bd991c0f17feb3f upgrade=1 from_commit=855bdcb966cf396a62edb2f1e17e7351642bbf50
# 3.22.8~yhn2 # 3.22.8~yhn2 ( Old Server version based on Ruby )
upgrade=1 from_commit=b0c7e9e6f16d286ec74fa3c1b9cdf8492f4dcb9b upgrade=1 from_commit=b0c7e9e6f16d286ec74fa3c1b9cdf8492f4dcb9b
backup_restore=1 backup_restore=1
multi_instance=1 multi_instance=1
@ -27,7 +27,8 @@
Email= Email=
Notification= Notification=
;;; Upgrade options ;;; Upgrade options
; commit=855bdcb966cf396a62edb2f1e17e7351642bbf50
name=2021.09.09~ynh1
; commit=b0c7e9e6f16d286ec74fa3c1b9cdf8492f4dcb9b ; commit=b0c7e9e6f16d286ec74fa3c1b9cdf8492f4dcb9b
name=3.22.8~ynh2 name=3.22.8~ynh2
manifest_arg=domain=DOMAIN&path=PATH=1

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/standardnotes/api-gateway/archive/1.25.0.tar.gz SOURCE_URL=https://github.com/standardnotes/api-gateway/archive/1.26.1.tar.gz
SOURCE_SUM=B83FF5C2C642070F7A06DD77B657935C3EBCCF8E287F9BD7A6C4069E7106E47B SOURCE_SUM=3fe3ea593dc1feca708c35786bf140f8445d964a4503145d0aa268bf0091a337
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/standardnotes/auth/archive/1.19.1.tar.gz SOURCE_URL=https://github.com/standardnotes/auth/archive/1.24.2.tar.gz
SOURCE_SUM=A25F9B57E6D03725C739A41891D85224CC1218534DAA3F2213803703FE8A7D67 SOURCE_SUM=8a38eb876a2b8c4b65309c7dd94df71817d8267e86377618a76964561ed7a45c
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/standardnotes/syncing-server-js/archive/1.39.0.tar.gz SOURCE_URL=https://github.com/standardnotes/syncing-server-js/archive/1.42.6.tar.gz
SOURCE_SUM=4B320DE63D388356B2B5576784FA2F8A49D0C44419FF73495C9997CC92F7E294 SOURCE_SUM=4b7adcbffe4936e1676f21a4d42bf68a3299421429716b08dcbb545d3a047f37
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true

View file

@ -1,10 +1,8 @@
* Any known limitations, constrains or stuff not working, such as (but not limited to): * No single-sign on or LDAP integration
* No single-sign on or LDAP integration * Ram requirements (Swap memory will be created during install):
* Ram requirements (Swap memory will be created during install):
* The app requires at least 800MB of RAM to work properly. * The app requires at least 800MB of RAM to work properly.
* The app requires at least 1000MB of RAM to start. * The app requires at least 1000MB of RAM to start.
* The app requires at least 1500MB of RAM to install. * The app requires at least 1500MB of RAM to install.
* Other infos that people should be aware of, such as: * The ".env" config-files are stored under "/opt/yunohost/$app/live/"
* The ".env" config-files are stored under "/opt/yunohost/$app/live/" * You can change the url of this app, but than all useres have to reinstall the extensions.
* You can change the url of this app, but than all useres have to reinstall the extensions.

View file

@ -5,7 +5,7 @@
"description": { "description": {
"en": "The Standard Notes syncing server. An end-to-end encrypted note-taking app." "en": "The Standard Notes syncing server. An end-to-end encrypted note-taking app."
}, },
"version": "2021.09.09~ynh1", "version": "2021.10.29~ynh1",
"url": "https://github.com/standardnotes/standalone", "url": "https://github.com/standardnotes/standalone",
"upstream": { "upstream": {
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
@ -29,7 +29,7 @@
"mysql" "mysql"
], ],
"arguments": { "arguments": {
"install" : [ "install": [
{ {
"name": "domain", "name": "domain",
"type": "domain" "type": "domain"

View file

@ -6,9 +6,9 @@
RUBY_VERSION="2.7.3" RUBY_VERSION="2.7.3"
NODEJS_VERSION="15.11.0" NODEJS_VERSION="15.11.0"
syncing_server_js_version="1.39.0" syncing_server_js_version="1.42.6"
auth_version="1.19.1" auth_version="1.24.2"
api_gateway_version="1.25.0" api_gateway_version="1.26.1"
extensions_version="2021.08.27" extensions_version="2021.08.27"
swap_needed=2048 swap_needed=2048

View file

@ -119,9 +119,7 @@ ynh_script_progression --message="Setting up source files..." --weight=2
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
mkdir -p "$final_path/live" mkdir -p "$final_path/live"
ynh_setup_source --source_id=app_syncing-server-js --dest_dir="$final_path/live/syncing-server-js" ynh_setup_source --source_id=app_syncing-server-js --dest_dir="$final_path/live/syncing-server-js"
ynh_setup_source --source_id=app_syncing-server-js --dest_dir="$final_path/live/syncing-server-js-worker"
ynh_setup_source --source_id=app_auth --dest_dir="$final_path/live/auth" ynh_setup_source --source_id=app_auth --dest_dir="$final_path/live/auth"
ynh_setup_source --source_id=app_auth --dest_dir="$final_path/live/auth-worker"
ynh_setup_source --source_id=app_api-gateway --dest_dir="$final_path/live/api-gateway" ynh_setup_source --source_id=app_api-gateway --dest_dir="$final_path/live/api-gateway"
chmod 750 "$final_path" chmod 750 "$final_path"

View file

@ -267,6 +267,14 @@ then
ynh_remove_app_dependencies ynh_remove_app_dependencies
fi fi
# Remove unneeded data
if [ -e "$final_path/live/syncing-server-js-worker" ]; then
ynh_secure_remove --file="$final_path/live/syncing-server-js-worker"
fi
if [ -e "$final_path/live/auth-worker" ]; then
ynh_secure_remove --file="$final_path/live/auth-worker"
fi
#================================================= #=================================================
# CREATE DEDICATED USER # CREATE DEDICATED USER
#================================================= #=================================================
@ -293,7 +301,7 @@ then
ynh_backup_if_checksum_is_different --file=$config_syncing_server_js ynh_backup_if_checksum_is_different --file=$config_syncing_server_js
ynh_backup_if_checksum_is_different --file=$config_syncing_server_js_worker ynh_backup_if_checksum_is_different --file=$config_syncing_server_js_worker
# Remove destination directory # Remove destination directory
ynh_secure_remove --file="$final_path/live/syncing_server_js" ynh_secure_remove --file="$final_path/live/syncing-server-js"
ynh_secure_remove --file="$config_syncing_server_js" ynh_secure_remove --file="$config_syncing_server_js"
ynh_secure_remove --file="$config_syncing_server_js_worker" ynh_secure_remove --file="$config_syncing_server_js_worker"
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
@ -320,7 +328,7 @@ then
# Backup files to keep # Backup files to keep
ynh_backup_if_checksum_is_different --file=$config_api_gateway ynh_backup_if_checksum_is_different --file=$config_api_gateway
# Remove destination directory # Remove destination directory
ynh_secure_remove --file="$final_path/live/api_gateway" ynh_secure_remove --file="$final_path/live/api-gateway"
ynh_secure_remove --file="$config_api_gateway" ynh_secure_remove --file="$config_api_gateway"
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
mkdir -p "$final_path/live" mkdir -p "$final_path/live"