diff options
| author | yalh76 <yalh@yahoo.com> | 2021-03-01 01:10:48 +0100 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2021-03-01 01:10:48 +0100 |
| commit | e70f09a5d3794532f87678ba14a0e82906b36a81 (patch) | |
| tree | a16042dfe7b1c98ea97fd6f5573334fc16521946 /scripts/upgrade | |
| parent | 384ebfa72c31d44b72063ef449297589a126bfc9 (diff) | |
| download | mastodon_ynh-e70f09a5d3794532f87678ba14a0e82906b36a81.tar.gz mastodon_ynh-e70f09a5d3794532f87678ba14a0e82906b36a81.tar.bz2 mastodon_ynh-e70f09a5d3794532f87678ba14a0e82906b36a81.zip | |
Fix auth header
ERR! Error: Invalid access token
Diffstat (limited to 'scripts/upgrade')
| -rw-r--r-- | scripts/upgrade | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/upgrade b/scripts/upgrade index 1f6d9ed..34db7f3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -57,6 +57,11 @@ if ynh_legacy_permissions_exists; then ynh_app_setting_delete --app=$app --key=is_public fi +# Create a permission if needed +if ! ynh_permission_exists --permission="api"; then + ynh_permission_create --permission="api" --url="/api" --allowed="visitors" --auth_header="false" --show_tile="false" --protected="true" +fi + # If port_web doesn't exist, create it, needed for old install if [[ -z "$port_web" ]]; then port_web=3000 |
