mirror of
https://github.com/YunoHost-Apps/outline_ynh.git
synced 2024-09-03 19:56:12 +02:00
commit
b86160fbf3
6 changed files with 13 additions and 4 deletions
|
@ -25,7 +25,8 @@ The fastest wiki and knowledge base for growing teams. Beautiful, feature rich,
|
||||||
- Using Yunohost's built-in SMTP server for notifications
|
- Using Yunohost's built-in SMTP server for notifications
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 0.65.2~ynh1
|
**Shipped version:** 0.65.2~ynh2
|
||||||
|
|
||||||
|
|
||||||
**Demo:** https://app.getoutline.com/create
|
**Demo:** https://app.getoutline.com/create
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,8 @@ The fastest wiki and knowledge base for growing teams. Beautiful, feature rich,
|
||||||
- Using Yunohost's built-in SMTP server for notifications
|
- Using Yunohost's built-in SMTP server for notifications
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 0.65.2~ynh1
|
**Version incluse :** 0.65.2~ynh2
|
||||||
|
|
||||||
|
|
||||||
**Démo :** https://app.getoutline.com/create
|
**Démo :** https://app.getoutline.com/create
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Wiki and knowledge base for teams",
|
"en": "Wiki and knowledge base for teams",
|
||||||
"fr": "Wiki et base de connaissances pour les équipes"
|
"fr": "Wiki et base de connaissances pour les équipes"
|
||||||
},
|
},
|
||||||
"version": "0.65.2~ynh1",
|
"version": "0.65.2~ynh2",
|
||||||
"url": "www.getoutline.com",
|
"url": "www.getoutline.com",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "BUSL-1.1",
|
"license": "BUSL-1.1",
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
"userdoc": "https://www.getoutline.com/about",
|
"userdoc": "https://www.getoutline.com/about",
|
||||||
"code": "https://github.com/outline/outline"
|
"code": "https://github.com/outline/outline"
|
||||||
},
|
},
|
||||||
"license": "AGPL-3.0-only",
|
"license": "BUSL-1.1",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
"name": "Raoul de Limezy"
|
"name": "Raoul de Limezy"
|
||||||
},
|
},
|
||||||
|
|
|
@ -64,11 +64,13 @@ ynh_print_info --message="Declaring files to be backed up..."
|
||||||
# BACKUP MINIO
|
# BACKUP MINIO
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
ynh_secure_remove --file="$mc_path/outlinestorage"
|
||||||
pushd "$mc_path"
|
pushd "$mc_path"
|
||||||
ynh_exec_warn_less sudo -u minio mkdir outlinestorage
|
ynh_exec_warn_less sudo -u minio mkdir outlinestorage
|
||||||
ynh_exec_warn_less sudo -u minio ./mc mirror --a minio/outlinestorage ./outlinestorage/
|
ynh_exec_warn_less sudo -u minio ./mc mirror --a minio/outlinestorage ./outlinestorage/
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
ynh_secure_remove --file="$final_path/outlinestorage"
|
||||||
mv "$mc_path/outlinestorage" "$final_path/outlinestorage"
|
mv "$mc_path/outlinestorage" "$final_path/outlinestorage"
|
||||||
chown -R outline:www-data "$final_path/outlinestorage"
|
chown -R outline:www-data "$final_path/outlinestorage"
|
||||||
|
|
||||||
|
|
|
@ -107,6 +107,7 @@ ynh_script_progression --message="Removing Outline MinIO bucket..." --weight=1
|
||||||
pushd "$mc_path"
|
pushd "$mc_path"
|
||||||
ynh_exec_warn_less sudo -u minio ./mc rb minio/outlinestorage --force
|
ynh_exec_warn_less sudo -u minio ./mc rb minio/outlinestorage --force
|
||||||
popd
|
popd
|
||||||
|
ynh_secure_remove --file="$mc_path/outlinestorage"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE NGINX CONFIGURATION
|
# REMOVE NGINX CONFIGURATION
|
||||||
|
|
|
@ -49,6 +49,10 @@ upgrade_type=$(ynh_check_app_version_changed)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=1
|
ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=1
|
||||||
|
|
||||||
|
# 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
|
# Backup the current version of the app
|
||||||
ynh_backup_before_upgrade
|
ynh_backup_before_upgrade
|
||||||
ynh_clean_setup () {
|
ynh_clean_setup () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue