Restore all scripts from old settings

This commit is contained in:
Josué Tille 2019-03-01 23:29:52 +01:00
parent 0631a0d13f
commit c30e33a612
No known key found for this signature in database
GPG Key ID: D5E068C6DFA8681D

View File

@ -280,6 +280,7 @@ ynh_handle_app_migration () {
local settings_dir="/etc/yunohost/apps"
cp -a "$settings_dir/$old_app" "$settings_dir/$new_app"
cp -a ../{scripts,conf} "$settings_dir/$new_app"
# Replace the old id by the new one
ynh_replace_string "\(^id: .*\)$old_app" "\1$new_app" "$settings_dir/$new_app/settings.yml"