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

Fix update 0.5.4

This commit is contained in:
oufmilo 2023-01-30 21:53:55 +01:00
parent 3c5b00e869
commit 95ea146b23
4 changed files with 3 additions and 15 deletions

View file

@ -12,7 +12,8 @@
setup_private=1
setup_public=1
upgrade=1
#upgrade=1 from_commit=CommitHash
# 0.5.3ynh1
upgrade=1 from_commit=ac72525a476648c6ccc9d9b52d68fdbd638b1d31
backup_restore=1
multi_instance=0
change_url=0

View file

@ -4,8 +4,6 @@
# COMMON VARIABLES
#=================================================
COMMIT="cad83a339ea53cd50aed9aa45a85e9f5b6443b64"
# dependencies used by the app
pkg_dependencies="postgresql postgresql-contrib python3-venv libpq-dev"

View file

@ -98,12 +98,8 @@ 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
pushd "$final_path"
git checkout $COMMIT
popd
ynh_setup_source --dest_dir="$final_path"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"

View file

@ -77,13 +77,6 @@ then
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path" --keep=".env"
pushd "$final_path"
git checkout production
git pull --quiet
git checkout $COMMIT
./bw-dev update
popd
fi
chmod 750 "$final_path"