mirror of
https://github.com/YunoHost-Apps/fittrackee_ynh.git
synced 2024-09-03 18:36:16 +02:00
Testing Git + update
This commit is contained in:
parent
5cef9c313c
commit
1c4abec6ad
4 changed files with 10 additions and 10 deletions
|
@ -1,7 +0,0 @@
|
|||
SOURCE_URL=https://github.com/bookwyrm-social/bookwyrm/archive/refs/tags/v0.5.3.tar.gz
|
||||
SOURCE_SUM=41E263369BB3E0ED23AF6D6E112BD35EDE082BD5BECFE1BE9BBA152E47EE4E86
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=tar.gz
|
||||
SOURCE_IN_SUBDIR=true
|
||||
SOURCE_FILENAME=
|
||||
SOURCE_EXTRACT=true
|
|
@ -4,6 +4,8 @@
|
|||
# COMMON VARIABLES
|
||||
#=================================================
|
||||
|
||||
COMMIT="cad83a339ea53cd50aed9aa45a85e9f5b6443b64"
|
||||
|
||||
# dependencies used by the app
|
||||
pkg_dependencies="postgresql postgresql-contrib python3-venv libpq-dev"
|
||||
|
||||
|
|
|
@ -98,8 +98,12 @@ ynh_psql_setup_db --db_user=$db_user --db_name=$db_name
|
|||
ynh_script_progression --message="Setting up source files..." --weight=1
|
||||
|
||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||
# Note: We use git instead of ynh_setup_source, cause this repo use submodules
|
||||
git clone https://github.com/bookwyrm-social/bookwyrm.git "$final_path" --quiet
|
||||
|
||||
ynh_setup_source --dest_dir="$final_path"
|
||||
pushd "$final_path"
|
||||
git checkout $COMMIT
|
||||
popd
|
||||
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
|
|
|
@ -77,8 +77,9 @@ then
|
|||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$final_path" --keep=".env"
|
||||
ynh_exec_warn_less ynh_exec_as $app ./bw-dev update
|
||||
ynh_exec_warn_less ynh_exec_as $app ./bw-dev populate_streams
|
||||
pushd "$final_path"
|
||||
./bw-dev update
|
||||
popd
|
||||
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue