mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
Fix hub on restore/upgrade
This commit is contained in:
parent
151844befb
commit
d1719a2a2f
2 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ ynh_restore_file "$final_path"
|
||||||
ynh_script_progression --message="Recreating the dedicated system user..." --time --weight=1
|
ynh_script_progression --message="Recreating the dedicated system user..." --time --weight=1
|
||||||
|
|
||||||
# Create the dedicated user (if not existing)
|
# Create the dedicated user (if not existing)
|
||||||
ynh_system_user_create "$app" "/home/$app"
|
ynh_system_user_create "$app" "$final_path"
|
||||||
# Allow bash for our user, so he can use hub
|
# Allow bash for our user, so he can use hub
|
||||||
chsh --shell /bin/bash "$app"
|
chsh --shell /bin/bash "$app"
|
||||||
|
|
||||||
|
|
|
@ -140,7 +140,7 @@ ynh_install_app_dependencies "$pkg_dependencies"
|
||||||
ynh_script_progression --message="Making sure dedicated system user exists..." --time --weight=1
|
ynh_script_progression --message="Making sure dedicated system user exists..." --time --weight=1
|
||||||
|
|
||||||
# Create a system user
|
# Create a system user
|
||||||
ynh_system_user_create "$app" "/home/$app"
|
ynh_system_user_create "$app" "$final_path"
|
||||||
chsh --shell /bin/bash "$app"
|
chsh --shell /bin/bash "$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue