1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flarum_ynh.git synced 2024-09-03 18:36:24 +02:00

Fix manifest and sources strategy

This commit is contained in:
tituspijean 2023-09-23 22:36:31 +02:00
parent ea6193c00f
commit dea4524861
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
3 changed files with 12 additions and 2 deletions

View file

@ -70,9 +70,19 @@ ram.runtime = "50M"
[resources]
# The main source is only used to auto-update the package
[resources.sources.main]
prefetch = false
url = "https://github.com/flarum/framework/archive/refs/tags/v1.8.2.tar.gz"
sha256 = "b1db07a9f0bdbd1b04b22e3c460de7e830f41d0c6f92264338309dbb7e148b1d"
autoupdate.upstream = "https://github.com/flarum/framework"
autoupdate.strategy = "latest_github_tag"
# The flarum source is the one actually being installed
[resources.sources.flarum]
url = "https://github.com/flarum/flarum/archive/v1.8.0.zip"
sha256 = "c6179876c27689522eb3e46d369ca053517602f528dcd36ba8a338ec768845cd"
autoupdate.upstream = "https://github.com/flarum/flarum"
autoupdate.strategy = "latest_github_tag"
[resources.system_user]

View file

@ -36,7 +36,7 @@ ynh_app_setting_set --app=$app --key=ldap_version --value="$ldap_version"
ynh_script_progression --message="Setting up source files..." --weight=3
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
ynh_setup_source --dest_dir="$install_dir" --source_id="flarum"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"

View file

@ -61,7 +61,7 @@ then
ynh_secure_remove --file="$install_dir"
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
ynh_setup_source --dest_dir="$install_dir" --source_id="flarum"
# Copy config.php back into Flarum
cp -f $tmpdir/config.php $install_dir