1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paheko_ynh.git synced 2024-09-03 19:56:22 +02:00

try fix migration

This commit is contained in:
rodinux 2023-01-15 21:15:38 +01:00
parent f045a9b1e7
commit f263e9df46
2 changed files with 2 additions and 2 deletions

View file

@ -120,7 +120,7 @@ ynh_handle_app_migration () {
# CHECK THE LIST OF FILES TO MOVE
#=================================================
local temp_migration_list="$(tempfile)"
local temp_migration_list="$(mktemp)"
# Build the list by removing blank lines and comment lines
sed '/^#.*\|^$/d' "../conf/$migration_list" > "$temp_migration_list"

View file

@ -77,7 +77,7 @@ ynh_handle_app_migration --migration_id=garradin --migration_list=garradin_migra
if [[ $migration_process -eq 1 ]]; then
# Replace the user
ynh_system_user_delete --username="$old_app"
ynh_system_user_delete --username="$old_app" --home_dir="$final_path"
ynh_system_user_create --username=$app --home_dir="$final_path"
fi