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:
parent
f045a9b1e7
commit
f263e9df46
2 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue