mirror of
https://github.com/YunoHost-Apps/invidious_ynh.git
synced 2024-09-03 19:15:55 +02:00
Update upgrade
This commit is contained in:
parent
9de0f82a67
commit
8aece55bc1
1 changed files with 11 additions and 6 deletions
|
@ -82,7 +82,6 @@ ynh_script_progression --message="Upgrading dependencies..." --weight=8
|
||||||
|
|
||||||
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
|
|
||||||
tempdir="$(mktemp -d)"
|
tempdir="$(mktemp -d)"
|
||||||
ynh_setup_source --dest_dir=$tempdir --source_id=crystal
|
ynh_setup_source --dest_dir=$tempdir --source_id=crystal
|
||||||
ynh_exec_warn_less dpkg -i $tempdir/crystal_1.0.0-1_amd64.deb
|
ynh_exec_warn_less dpkg -i $tempdir/crystal_1.0.0-1_amd64.deb
|
||||||
|
@ -101,14 +100,20 @@ then
|
||||||
cp -a "$final_path/config/config.yml" "$tmpdir/config.yml"
|
cp -a "$final_path/config/config.yml" "$tmpdir/config.yml"
|
||||||
|
|
||||||
# Remove the app directory securely
|
# Remove the app directory securely
|
||||||
#ynh_secure_remove --file=$final_path
|
ynh_secure_remove --file=$final_path
|
||||||
|
|
||||||
#git clone https://github.com/iv-org/invidious "$final_path" --quiet
|
git clone https://github.com/iv-org/invidious "$final_path" --quiet
|
||||||
pushd $final_path
|
pushd "$final_path" || ynh_die
|
||||||
git pull
|
|
||||||
shards update && shards install
|
shards update && shards install
|
||||||
crystal build $final_path/src/invidious.cr --release
|
crystal build $final_path/src/invidious.cr --release
|
||||||
popd
|
popd || ynh_die
|
||||||
|
|
||||||
|
#git clone https://github.com/iv-org/invidious "$final_path" --quiet
|
||||||
|
# pushd $final_path
|
||||||
|
# git pull
|
||||||
|
# shards update && shards install
|
||||||
|
# crystal build $final_path/src/invidious.cr --release
|
||||||
|
# popd
|
||||||
|
|
||||||
# Copy the admin saved settings from tmp directory to final path
|
# Copy the admin saved settings from tmp directory to final path
|
||||||
cp -a "$tmpdir/config.yml" "$final_path/config/config.yml"
|
cp -a "$tmpdir/config.yml" "$final_path/config/config.yml"
|
||||||
|
|
Loading…
Add table
Reference in a new issue