1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00

Merge pull request #27 from YunoHost-Apps/fix-hub

Fix hub on restore/upgrade
This commit is contained in:
Jean-Baptiste 2020-05-01 22:33:14 +02:00 committed by GitHub
commit 324d990064
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"
#================================================= #=================================================