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:
parent
ea6193c00f
commit
dea4524861
3 changed files with 12 additions and 2 deletions
|
@ -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]
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue