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

Fix upgrade: it was not installing config files

This commit is contained in:
Salamandar 2024-03-13 14:15:37 +01:00
parent 552c37777d
commit b81eb0ec5a
2 changed files with 8 additions and 4 deletions

View file

@ -46,7 +46,7 @@ popd
#=================================================
# ADD A CONFIGURATION
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=3
ynh_script_progression --message="Adding $app's configuration file..." --weight=3
dato_setup_config_files

View file

@ -43,9 +43,6 @@ ynh_setup_source --dest_dir="$install_dir/sources" --full_replace=1 --keep="conf
chmod -R o-rwx "$install_dir"
chown -R "$app:www-data" "$install_dir"
mkdir -p "$install_dir/sources/dist"
chown -R "$app:$app" "$install_dir/sources/dist" "$install_dir/sources/global" "$install_dir/sources/config"
#=================================================
# SPECIFIC UPGRADE
#=================================================
@ -58,6 +55,13 @@ pushd "$install_dir/sources"
ynh_exec_warn_less ynh_exec_as "$app" "$ynh_node_load_PATH" "$ynh_npm" install --loglevel warn
popd
#=================================================
# ADD A CONFIGURATION
#=================================================
ynh_script_progression --message="Updating $app's configuration file..." --weight=3
dato_setup_config_files
#=================================================
# REAPPLY SYSTEM CONFIGURATIONS
#=================================================