1
0
Fork 0
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:
Kay0u 2020-04-15 16:10:47 +02:00
parent 151844befb
commit d1719a2a2f
No known key found for this signature in database
GPG key ID: AE1DCADB6415A156
2 changed files with 2 additions and 2 deletions

View file

@ -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"

View file

@ -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"
#================================================= #=================================================