mirror of
https://github.com/YunoHost-Apps/invidious_ynh.git
synced 2024-09-03 19:15:55 +02:00
Merge branch 'upgrade' of https://github.com/YunoHost-Apps/invidious_ynh into upgrade
This commit is contained in:
commit
2a7572fd85
3 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@
|
||||||
setup_private=1
|
setup_private=1
|
||||||
setup_public=1
|
setup_public=1
|
||||||
upgrade=1
|
upgrade=1
|
||||||
upgrade=1 from_commit=d0b65b69558b6a1a98761eb7be0b34b4ccb7d6b3
|
#upgrade=1 from_commit=d0b65b69558b6a1a98761eb7be0b34b4ccb7d6b3
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=0
|
multi_instance=0
|
||||||
change_url=0
|
change_url=0
|
||||||
|
|
|
@ -87,7 +87,7 @@ db_name=$(ynh_sanitize_dbid --db_name=$app)
|
||||||
db_user="kemal"
|
db_user="kemal"
|
||||||
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
|
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
|
||||||
ynh_psql_test_if_first_run
|
ynh_psql_test_if_first_run
|
||||||
ynh_psql_setup_db --db_user=$db_name --db_name=$db_name
|
ynh_psql_setup_db --db_user=$db_user --db_name=$db_name
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
|
|
@ -96,7 +96,7 @@ then
|
||||||
#git reset --hard --quiet
|
#git reset --hard --quiet
|
||||||
git pull
|
git pull
|
||||||
latestVersion=$(git describe --tags --abbrev=0)
|
latestVersion=$(git describe --tags --abbrev=0)
|
||||||
git checkout -f $latestVersion #-f
|
git checkout -f $latestVersion
|
||||||
for i in `git rev-list --reverse --abbrev-commit $currentVersion..HEAD` ; do file=./config/migrate-scripts/migrate-db-$i.sh ; [ -f $file ] && $file ; done
|
for i in `git rev-list --reverse --abbrev-commit $currentVersion..HEAD` ; do file=./config/migrate-scripts/migrate-db-$i.sh ; [ -f $file ] && $file ; done
|
||||||
ynh_exec_warn_less shards update && shards install
|
ynh_exec_warn_less shards update && shards install
|
||||||
ynh_exec_warn_less crystal build $final_path/src/invidious.cr --release
|
ynh_exec_warn_less crystal build $final_path/src/invidious.cr --release
|
||||||
|
|
Loading…
Add table
Reference in a new issue