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:
parent
552c37777d
commit
b81eb0ec5a
2 changed files with 8 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue