mirror of
https://github.com/YunoHost-Apps/jellyfin-vue_ynh.git
synced 2024-09-03 19:26:31 +02:00
full_replace ynh_setup source upgrade
This commit is contained in:
parent
0b5ace2dd3
commit
a2eb3c5512
1 changed files with 10 additions and 11 deletions
|
@ -17,22 +17,21 @@ upgrade_type=$(ynh_check_app_version_changed)
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]; then
|
||||||
then
|
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
|
||||||
|
|
||||||
ynh_setup_source --dest_dir="$install_dir/source"
|
ynh_setup_source --dest_dir="$install_dir/source" --full_replace=1
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
ynh_script_progression --message="Installing NodeJS..." --weight=20
|
ynh_script_progression --message="Installing NodeJS..." --weight=20
|
||||||
|
|
||||||
# Install Nodejs
|
# Install Nodejs
|
||||||
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||||
|
|
||||||
ynh_script_progression --message="Building Jellyfin Vue... (this will take some time and resources!)" --weight=24
|
ynh_script_progression --message="Building Jellyfin Vue... (this will take some time and resources!)" --weight=24
|
||||||
|
|
||||||
_patch_config_json "$install_dir/source"
|
_patch_config_json "$install_dir/source"
|
||||||
_npm_build_install "$install_dir/source" "$install_dir/www" "$path/"
|
_npm_build_install "$install_dir/source" "$install_dir/www" "$path/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
Loading…
Add table
Reference in a new issue