mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-21 18:41:35 +01:00
Restore all scripts from old settings
This commit is contained in:
parent
0631a0d13f
commit
c30e33a612
@ -280,6 +280,7 @@ ynh_handle_app_migration () {
|
|||||||
|
|
||||||
local settings_dir="/etc/yunohost/apps"
|
local settings_dir="/etc/yunohost/apps"
|
||||||
cp -a "$settings_dir/$old_app" "$settings_dir/$new_app"
|
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
|
# Replace the old id by the new one
|
||||||
ynh_replace_string "\(^id: .*\)$old_app" "\1$new_app" "$settings_dir/$new_app/settings.yml"
|
ynh_replace_string "\(^id: .*\)$old_app" "\1$new_app" "$settings_dir/$new_app/settings.yml"
|
||||||
|
Loading…
Reference in New Issue
Block a user