1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/tiki_ynh.git synced 2024-09-04 01:15:54 +02:00

Merge pull request #10 from YunoHost-Apps/testing_2023-03-21_choose_LTS

Being able to install regular version or LTS version
This commit is contained in:
Éric Gaspar 2023-05-21 09:21:15 +02:00 committed by GitHub
commit faf3ebedd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 45 additions and 11 deletions

View file

@ -1,7 +0,0 @@
SOURCE_URL=https://sourceforge.net/projects/tikiwiki/files/Tiki_25.x_Sagittarius_A/25.0/tiki-25.0.tar.gz/download
SOURCE_SUM=e056cdcfdcb03a8c4710db44e7f04e0f846eb7131a8f8aa130a3d8348e0161a4
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=
SOURCE_EXTRACT=true

View file

@ -2,4 +2,4 @@
To ease the install process and first access, Tiki saves your uploaded files (office documents, images, pdf, etc. attached to wiki pages, forum posts, tracker items, file galleries...) by default in its database. This works perfectly in most cases but it is not the recommended setup if you need to save many thousands of files or more.
In that case, consider switching from "Store to database" to "Store to directory", which you will find in the Configuration Wizard. Please use this preset path directory: `/home/yunohost.app/tiki`. You will be able to migrate your currently uploaded files from one to the other.
In that case, consider switching from "Store to database" to "Store to directory", which you will find in the Configuration Wizard. Please use this preset path directory: `/home/yunohost.app/$app`. You will be able to migrate your currently uploaded files from one to the other.

View file

@ -33,11 +33,34 @@ ram.runtime = "50M"
type = "path"
default = "/tiki"
[install.release_cycle]
ask.en = "Upgrade cycle"
ask.fr = "Cycle de mises à jours"
help.en = "Every 3 version is an LTS. LTS versions are supported for 5 years"
help.fr = "Toutes les 3 versions sont des LTS qui sont maintenues pendant 5 ans"
type = "select"
choices.longterm = "Install latest Long Term Support version (recommended)"
choices.regular = "Install latest version"
default = "longterm"
[install.init_main_permission]
type = "group"
default = "visitors"
[resources]
[resources.sources]
[resources.sources.main]
url = "https://sourceforge.net/projects/tikiwiki/files/Tiki_25.x_Sagittarius_A/25.0/tiki-25.0.tar.gz/download"
sha256 = "e056cdcfdcb03a8c4710db44e7f04e0f846eb7131a8f8aa130a3d8348e0161a4"
format = "tar.gz"
[resources.sources.lts]
url = "https://sourceforge.net/projects/tikiwiki/files/Tiki_24.x_Wolf_359/24.0/tiki-24.0.tar.gz/download"
sha256 = "2f9fd0e3509cf28c884173bfa58ff3aaa2e694f8c6051b0a94ba1bdbb243463e"
format = "tar.gz"
[resources.system_user]
[resources.install_dir]

View file

@ -27,7 +27,13 @@ ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
ynh_script_progression --message="Setting up source files..." --weight=15
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
source_id_to_use="main"
if [[ "$release_cycle" == "longterm" ]]
then
source_id_to_use="lts"
fi
ynh_setup_source --dest_dir="$install_dir" --source_id="$source_id_to_use"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"

View file

@ -47,7 +47,13 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
source_id_to_use="main"
if [[ "$release_cycle" == "longterm" ]]
then
source_id_to_use="lts"
fi
ynh_setup_source --dest_dir="$install_dir" --source_id="$source_id_to_use"
fi
chmod -R o-rwx "$install_dir"

View file

@ -1,3 +1,9 @@
test_format = 1.0
[default]
[default]
[regular]
only = ["install.subdir"]
args.release_cycle = "regular"