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 2024-08-30 12:17:23 +02:00
parent 2465dd2702
commit 223b714b69
3 changed files with 7 additions and 30 deletions

View file

@ -17,13 +17,11 @@ admindoc = "https://docs.hedgedoc.org/"
code = "https://github.com/hedgedoc/hedgedoc" code = "https://github.com/hedgedoc/hedgedoc"
[integration] [integration]
yunohost = ">= 11.2.16" yunohost = ">= 11.2.28"
helpers_version = "2.1" helpers_version = "2.1"
architectures = "all" architectures = "all"
multi_instance = true multi_instance = true
ldap = true ldap = true
sso = true sso = true
disk = "50M" disk = "50M"

View file

@ -28,7 +28,7 @@ ynh_nodejs_install
#================================================= #=================================================
ynh_script_progression "Restoring the PostgreSQL database..." ynh_script_progression "Restoring the PostgreSQL database..."
ynh_psql_db_shell < "./db.sql"" ynh_psql_db_shell < "./db.sql"
#================================================= #=================================================
# RESTORE SYSTEMD # RESTORE SYSTEMD

View file

@ -8,35 +8,15 @@ source /usr/share/yunohost/helpers
#================================================= #=================================================
ynh_script_progression "Ensuring downward compatibility..." ynh_script_progression "Ensuring downward compatibility..."
# FIXME: maybe replace with: ynh_app_setting_set_default --key=allow_anonymous --value="false" ynh_app_setting_set_default --key=allow_anonymous --value="false"
if [ -z "${allow_anonymous:-}" ]; then
allow_anonymous="false"
ynh_app_setting_set --key=allow_anonymous --value=$allow_anonymous
fi
# FIXME: maybe replace with: ynh_app_setting_set_default --key=allow_anonymous_edits --value="false" ynh_app_setting_set_default --key=allow_anonymous_edits --value="false"
if [ -z "${allow_anonymous_edits:-}" ]; then
allow_anonymous_edits="false"
ynh_app_setting_set --key=allow_anonymous_edits --value=$allow_anonymous_edits
fi
# FIXME: maybe replace with: ynh_app_setting_set_default --key=allow_email_registration --value="false" ynh_app_setting_set_default --key=allow_email_registration --value="false"
if [ -z "${allow_email_registration:-}" ]; then
allow_email_registration="false"
ynh_app_setting_set --key=allow_email_registration --value=$allow_email_registration
fi
# FIXME: maybe replace with: ynh_app_setting_set_default --key=allow_free_url --value="false" ynh_app_setting_set_default --key=allow_free_url --value="false"
if [ -z "${allow_free_url:-}" ]; then
allow_free_url="false"
ynh_app_setting_set --key=allow_free_url --value=$allow_free_url
fi
# FIXME: maybe replace with: ynh_app_setting_set_default --key=require_free_url_authentication --value="false" ynh_app_setting_set_default --key=require_free_url_authentication --value="false"
if [ -z "${require_free_url_authentication:-}" ]; then
require_free_url_authentication="false"
ynh_app_setting_set --key=require_free_url_authentication --value=$require_free_url_authentication
fi
#================================================= #=================================================
# STOP SYSTEMD SERVICE # STOP SYSTEMD SERVICE
@ -76,7 +56,6 @@ ynh_script_progression "Building $app... (this will take some time and resources
pushd "$install_dir" pushd "$install_dir"
ynh_safe_rm /usr/local/share/.cache/yarn ynh_safe_rm /usr/local/share/.cache/yarn
ynh_hide_warnings ynh_exec_as_app yarn workspaces focus --production ynh_hide_warnings ynh_exec_as_app yarn workspaces focus --production
ynh_hide_warnings ynh_exec_as_app yarn cache clean ynh_hide_warnings ynh_exec_as_app yarn cache clean
popd popd