1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hedgedoc_ynh.git synced 2024-09-03 19:25:52 +02:00
This commit is contained in:
Éric Gaspar 2023-04-03 09:32:03 +02:00
parent c16a16c923
commit 4eca26efeb
3 changed files with 6 additions and 8 deletions

View file

@ -17,7 +17,7 @@ admindoc = "https://docs.hedgedoc.org/"
code = "https://github.com/hedgedoc/hedgedoc" code = "https://github.com/hedgedoc/hedgedoc"
[integration] [integration]
yunohost = ">= 11.1.12" yunohost = ">= 11.1.15"
architectures = "all" architectures = "all"
multi_instance = true multi_instance = true
ldap = true ldap = true
@ -54,7 +54,6 @@ ram.runtime = "50M"
[resources.apt] [resources.apt]
packages = "postgresql" packages = "postgresql"
# (this part is optional and corresponds to the legacy ynh_install_extra_app_dependencies helper)
extras.yarn.repo = "deb https://dl.yarnpkg.com/debian/ stable main" extras.yarn.repo = "deb https://dl.yarnpkg.com/debian/ stable main"
extras.yarn.key = "https://dl.yarnpkg.com/debian/pubkey.gpg" extras.yarn.key = "https://dl.yarnpkg.com/debian/pubkey.gpg"
extras.yarn.packages = "yarn" extras.yarn.packages = "yarn"

View file

@ -25,7 +25,6 @@ ynh_script_progression --message="Restoring HedgeDoc main directory..." --weight
ynh_restore_file --origin_path="$install_dir" ynh_restore_file --origin_path="$install_dir"
chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"

View file

@ -20,27 +20,27 @@ upgrade_type=$(ynh_check_app_version_changed)
#================================================= #=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
if [ -z "$allow_anonymous" ]; then if [ -z "${allow_anonymous:-}" ]; then
allow_anonymous="false" allow_anonymous="false"
ynh_app_setting_set --app=$app --key=allow_anonymous --value=$allow_anonymous ynh_app_setting_set --app=$app --key=allow_anonymous --value=$allow_anonymous
fi fi
if [ -z "$allow_anonymous_edits" ]; then if [ -z "${allow_anonymous_edits:-}" ]; then
allow_anonymous_edits="false" allow_anonymous_edits="false"
ynh_app_setting_set --app=$app --key=allow_anonymous_edits --value=$allow_anonymous_edits ynh_app_setting_set --app=$app --key=allow_anonymous_edits --value=$allow_anonymous_edits
fi fi
if [ -z "$allow_email_registration" ]; then if [ -z "${allow_email_registration:-}" ]; then
allow_email_registration="false" allow_email_registration="false"
ynh_app_setting_set --app=$app --key=allow_email_registration --value=$allow_email_registration ynh_app_setting_set --app=$app --key=allow_email_registration --value=$allow_email_registration
fi fi
if [ -z "$allow_free_url" ]; then if [ -z "${allow_free_url:-}" ]; then
allow_free_url="false" allow_free_url="false"
ynh_app_setting_set --app=$app --key=allow_free_url --value=$allow_free_url ynh_app_setting_set --app=$app --key=allow_free_url --value=$allow_free_url
fi fi
if [ -z "$require_free_url_authentication" ]; then if [ -z "${require_free_url_authentication:-}" ]; then
require_free_url_authentication="false" require_free_url_authentication="false"
ynh_app_setting_set --app=$app --key=require_free_url_authentication --value=$require_free_url_authentication ynh_app_setting_set --app=$app --key=require_free_url_authentication --value=$require_free_url_authentication
fi fi