1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/audiobookshelf_ynh.git synced 2024-09-03 18:06:19 +02:00

Update upgrade

This commit is contained in:
Éric Gaspar 2024-06-09 22:25:12 +02:00
parent dc58ae4265
commit 735007ed09

View file

@ -16,6 +16,8 @@ ynh_script_progression --message="Upgrading dependencies..." --weight=10
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_use_nodejs
#================================================= #=================================================
# STANDARD UPGRADE STEPS # STANDARD UPGRADE STEPS
#================================================= #=================================================
@ -65,7 +67,6 @@ chown -R $app:www-data "$install_dir"
ynh_script_progression --message="Upgrading app..." --weight=10 ynh_script_progression --message="Upgrading app..." --weight=10
pushd $install_dir/client pushd $install_dir/client
ynh_use_nodejs
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm ci ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm ci
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm cache clean --force ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm cache clean --force
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm run generate ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm run generate
@ -78,7 +79,7 @@ popd
#================================================= #=================================================
# UPDATE A CONFIG FILE # UPDATE A CONFIG FILE
#================================================= #=================================================
ynh_script_progression --message="Updating a configuration file..." ynh_script_progression --message="Updating a configuration file..." --weight=1
ynh_add_config --template=".env" --destination="$install_dir/.env" ynh_add_config --template=".env" --destination="$install_dir/.env"
@ -86,9 +87,9 @@ chmod 400 "$install_dir/.env"
chown $app:$app "$install_dir/.env" chown $app:$app "$install_dir/.env"
#================================================= #=================================================
# SETUP SYSTEMD # UPDATE A CONFIG FILE
#================================================= #=================================================
ynh_script_progression --message="Upgrading systemd configuration..." --weight=1 ynh_script_progression --message="Updating $app's configuration files..." --weight=1
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config