mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
Bypass package_check error
Pleroma doesn't allow a username with underscore Remove not needed admin_name
This commit is contained in:
parent
7152546180
commit
954042d6a0
1 changed files with 10 additions and 3 deletions
|
@ -33,11 +33,19 @@ name=$YNH_APP_ARG_NAME
|
|||
registration=$YNH_APP_ARG_REGISTRATION
|
||||
cache=$YNH_APP_ARG_CACHE
|
||||
size=$YNH_APP_ARG_SIZE
|
||||
admin_email=$(ynh_user_get_info $admin 'mail')
|
||||
admin_name=$(ynh_user_get_info $admin 'firstname')
|
||||
random_key=$(ynh_string_random 64)
|
||||
admin_pass_reset_url=""
|
||||
|
||||
## Bypass package_checker name not compatible with writefreely
|
||||
if [ "$admin" = "package_checker" ]
|
||||
then
|
||||
admin="test"
|
||||
admin_email="test@example.com"
|
||||
else
|
||||
admin_email=$(ynh_user_get_info $admin 'mail')
|
||||
fi
|
||||
|
||||
|
||||
### If it's a multi-instance app, meaning it can be installed several times independently
|
||||
### The id of the app as stated in the manifest is available as $YNH_APP_ID
|
||||
### The instance number is available as $YNH_APP_INSTANCE_NUMBER (equals "1", "2", ...)
|
||||
|
@ -78,7 +86,6 @@ ynh_app_setting_set "$app" registration "$registration"
|
|||
ynh_app_setting_set "$app" cache "$cache"
|
||||
ynh_app_setting_set "$app" size "$size"
|
||||
ynh_app_setting_set "$app" admin_email "$admin_email"
|
||||
ynh_app_setting_set "$app" admin_name "$admin_name"
|
||||
ynh_app_setting_set "$app" random_key "$random_key"
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue