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:
commit
faf3ebedd0
6 changed files with 45 additions and 11 deletions
|
@ -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
|
|
|
@ -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.
|
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.
|
||||||
|
|
|
@ -33,11 +33,34 @@ ram.runtime = "50M"
|
||||||
type = "path"
|
type = "path"
|
||||||
default = "/tiki"
|
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]
|
[install.init_main_permission]
|
||||||
type = "group"
|
type = "group"
|
||||||
default = "visitors"
|
default = "visitors"
|
||||||
|
|
||||||
[resources]
|
[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.system_user]
|
||||||
|
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
|
@ -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
|
ynh_script_progression --message="Setting up source files..." --weight=15
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# 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"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
|
@ -47,7 +47,13 @@ then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# 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
|
fi
|
||||||
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
test_format = 1.0
|
test_format = 1.0
|
||||||
|
|
||||||
[default]
|
[default]
|
||||||
|
|
||||||
|
[regular]
|
||||||
|
|
||||||
|
only = ["install.subdir"]
|
||||||
|
|
||||||
|
args.release_cycle = "regular"
|
||||||
|
|
Loading…
Reference in a new issue