From 142c526388f7be807a5b5324c3cd3f3ceb9eebca Mon Sep 17 00:00:00 2001 From: Limezy Date: Fri, 29 Sep 2023 22:30:45 +0700 Subject: [PATCH 1/5] Update upgrade --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index e91c6ff..8954546 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -47,7 +47,6 @@ ynh_script_progression --message="Backing up the app before upgrading (may take # Ugly fix for an early mistake - to be removed with next upgrade ynh_secure_remove --file="$final_path/outlinestorage" -ynh_secure_remove --file="$mc_path/outlinestorage" # Backup the current version of the app ynh_backup_before_upgrade @@ -84,6 +83,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src + ynh_secure_remove --file="$final_path" ynh_setup_source --dest_dir="$final_path" fi From 98b01143af04865bc0c121ad8ba823fa71b656f7 Mon Sep 17 00:00:00 2001 From: Limezy Date: Fri, 29 Sep 2023 22:38:56 +0700 Subject: [PATCH 2/5] Update upgrade --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 8954546..da9ddcb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -107,7 +107,7 @@ then minio_password=$(ynh_app_setting_get --app=$app --key=minio_password) mc_path=$(ynh_app_setting_get --app=$app --key=mc_path) - mkdir "/var/lib/$app/data" + mkdir -p "/var/lib/$app/data" chown -R minio:www-data "/var/lib/$app" ynh_exec_warn_less sudo -u minio $mc_path/mc mirror --preserve "minio/outlinestorage" "/var/lib/$app/data" From 4467a4d8605ecff2cc7983cc60968fce3f9fd9b8 Mon Sep 17 00:00:00 2001 From: Limezy Date: Fri, 29 Sep 2023 22:43:15 +0700 Subject: [PATCH 3/5] Updates --- conf/.env | 2 +- doc/DESCRIPTION.md | 1 - doc/DISCLAIMER.md | 13 ++++++------- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/conf/.env b/conf/.env index 729d350..00a44b7 100644 --- a/conf/.env +++ b/conf/.env @@ -30,7 +30,7 @@ PORT=__PORT__ # => https://wiki.generaloutline.com/share/125de1cc-9ff6-424b-8415-0d58c809a40f # FILE_STORAGE=local -FILE_STORAGE_UPLOAD_MAX_SIZE=26214400 +FILE_STORAGE_UPLOAD_MAX_SIZE=106214400 # –––––––––––––– AUTHENTICATION –––––––––––––– diff --git a/doc/DESCRIPTION.md b/doc/DESCRIPTION.md index 0b23e3c..436faaf 100644 --- a/doc/DESCRIPTION.md +++ b/doc/DESCRIPTION.md @@ -3,6 +3,5 @@ The fastest wiki and knowledge base for growing teams. Beautiful, feature rich, ### Features - Fully working installation of Outline wiki -- Including a MinIO server for avatars and picture object storage - Including a Dex server to connect to Yunohost's LDAP userbase using an OIDC auth flow - Using Yunohost's built-in SMTP server for notifications diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index a08ae4b..215de69 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -1,16 +1,15 @@ ### Not totally free licence Outline is a softwared licenced under [BUSL 1.1 licence](https://spdx.org/licenses/BUSL-1.1.html). ⚠️ That licence **is not totally free**. Please read it very carefully if you have any commercial use in mind. -The Outline version shipped with this package (v0.68.0) will be released under Apache-2.0 licence [after May 23rd 2026](https://github.com/outline/outline/blob/151c2c731a94eefdda4e62f311308e9bd4615838/LICENSE). +The Outline version shipped with this package (v0.72.0) will be released under Apache-2.0 licence [after May 23rd 2026](https://github.com/outline/outline/blob/151c2c731a94eefdda4e62f311308e9bd4615838/LICENSE). ### Known limitations -1. The app can now run in the CI server and reach level 7. However, it is still very young and not broadly tested. **Please use it with extreme care if it's on a prod server** -2. The app requires [MinIO app](https://github.com/YunoHost-apps/minio_ynh) to be installed (MinIO installation and setup is automatic, though) -3. The app requires [Dex app](https://github.com/YunoHost-apps/dex_ynh) to be installed (Dex installation and setup is automatic, though) -4. The app is requiring three domains including two fully dedicated (one for MinIO server, one for Dex, one for Outline) -5. ARM architectures are not yet supported (But it should be achievable soon) -6. Because it's built from sources, the app requires an important amount of RAM, disk and time to install properly +1. The app can now run in the CI server and reach level 8. However, it is still very young and not broadly tested. **Please use it with extreme care if it's on a prod server** +2. The app requires [Dex app](https://github.com/YunoHost-apps/dex_ynh) to be installed (Dex installation and setup is automatic, though) +3. The app is requiring three domains including two fully dedicated (one for MinIO server, one for Dex, one for Outline) +4. ARM architectures are not yet supported (But it should be achievable soon) +5. Because it's built from sources, the app requires an important amount of RAM, disk and time to install properly ### How to create an admin user From 635f98adda28e2269b074ff2306419e2b1ce451d Mon Sep 17 00:00:00 2001 From: Limezy Date: Sat, 30 Sep 2023 10:36:20 +0700 Subject: [PATCH 4/5] Update --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 30fc472..bb02976 100755 --- a/scripts/install +++ b/scripts/install @@ -189,7 +189,7 @@ pushd "$final_path" ynh_script_progression --message="Fetching Yarn production dependencies... This can be very long, be patient !" --weight=18 ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install --frozen-lockfile --network-timeout 1000000000 2>&1 ynh_script_progression --message="Building... This can be very long, be patient !" --weight=18 - ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_OPTIONS="--max-old-space-size=3900" yarn build 2>&1 + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_OPTIONS="--max-old-space-size=3200" yarn build 2>&1 ynh_script_progression --message="Cleaning cache... " --weight=3 ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn cache clean 2>&1 popd diff --git a/scripts/restore b/scripts/restore index eae6a2f..17db50b 100755 --- a/scripts/restore +++ b/scripts/restore @@ -104,7 +104,7 @@ ynh_script_progression --message="Restoring the app local storage..." --weight=1 ynh_restore_file --origin_path="/var/lib/outline" -chmod 400 "/var/lib/outline" +chmod 750 "/var/lib/outline" chown -R $app:www-data "/var/lib/outline" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index da9ddcb..7ca1231 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -150,7 +150,7 @@ pushd "$final_path" ynh_script_progression --message="Fetching Yarn production dependencies... This can be very long, be patient !" --weight=18 ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install --frozen-lockfile --network-timeout 1000000000 2>&1 ynh_script_progression --message="Building... This can be very long, be patient !" --weight=18 - ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_OPTIONS="--max-old-space-size=1900" yarn build 2>&1 + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_OPTIONS="--max-old-space-size=3200" yarn build 2>&1 ynh_script_progression --message="Cleaning cache... " --weight=3 ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn cache clean 2>&1 popd From 729f9eb50732e5f417d304c295b41194afa6b72c Mon Sep 17 00:00:00 2001 From: Limezy Date: Sat, 30 Sep 2023 22:43:42 +0700 Subject: [PATCH 5/5] Test --- scripts/restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index 17db50b..aa6a701 100755 --- a/scripts/restore +++ b/scripts/restore @@ -104,7 +104,7 @@ ynh_script_progression --message="Restoring the app local storage..." --weight=1 ynh_restore_file --origin_path="/var/lib/outline" -chmod 750 "/var/lib/outline" +chmod -R 750 "/var/lib/outline" chown -R $app:www-data "/var/lib/outline" #=================================================