diff --git a/README.md b/README.md index b425c98..eef4574 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ It shall NOT be edited by hand. Gancio provide an online agenda open to contributions, and federated with the fediverse using ActivityPub. -**Shipped version:** 1.15.5~ynh2 +**Shipped version:** 1.16.2~ynh1 **Demo:** diff --git a/README_es.md b/README_es.md index f6254dd..4028ca4 100644 --- a/README_es.md +++ b/README_es.md @@ -19,7 +19,7 @@ No se debe editar a mano. Gancio provide an online agenda open to contributions, and federated with the fediverse using ActivityPub. -**Versión actual:** 1.15.5~ynh2 +**Versión actual:** 1.16.2~ynh1 **Demo:** diff --git a/README_eu.md b/README_eu.md index 8de930c..f230407 100644 --- a/README_eu.md +++ b/README_eu.md @@ -19,7 +19,7 @@ EZ editatu eskuz. Gancio provide an online agenda open to contributions, and federated with the fediverse using ActivityPub. -**Paketatutako bertsioa:** 1.15.5~ynh2 +**Paketatutako bertsioa:** 1.16.2~ynh1 **Demoa:** diff --git a/README_fr.md b/README_fr.md index 0909808..c28bd19 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Il NE doit PAS être modifié à la main. Gancio propose un agenda en ligne ouvert aux contributions, et fédéré avec le fediverse via ActivityPub. -**Version incluse :** 1.15.5~ynh2 +**Version incluse :** 1.16.2~ynh1 **Démo :** diff --git a/README_gl.md b/README_gl.md index 420d7ae..aede753 100644 --- a/README_gl.md +++ b/README_gl.md @@ -19,7 +19,7 @@ NON debe editarse manualmente. Gancio provide an online agenda open to contributions, and federated with the fediverse using ActivityPub. -**Versión proporcionada:** 1.15.5~ynh2 +**Versión proporcionada:** 1.16.2~ynh1 **Demo:** diff --git a/README_zh_Hans.md b/README_zh_Hans.md index 56e1cb5..8908b02 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -19,7 +19,7 @@ Gancio provide an online agenda open to contributions, and federated with the fediverse using ActivityPub. -**分发版本:** 1.15.5~ynh2 +**分发版本:** 1.16.2~ynh1 **演示:** diff --git a/conf/config.json b/conf/config.json index 6100205..5799b32 100644 --- a/conf/config.json +++ b/conf/config.json @@ -1,7 +1,7 @@ { "baseurl": "https://__DOMAIN__", "server": { - "host": "localhost", + "host": "127.0.0.1", "port": "__PORT__" }, "log_level": "debug", diff --git a/conf/systemd.service b/conf/systemd.service index 93f2bbf..0b83c64 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,7 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ Environment="__YNH_NODE_LOAD_PATH__" -ExecStart=__YNH_NODE__ server/cli.js start --config ./config.json +ExecStart=__YNH_NODE__ server/cli.js start --config __INSTALL_DIR__/config.json # Sandboxing options to harden security # Depending on specificities of your service/app, you may need to tweak these diff --git a/manifest.toml b/manifest.toml index aad36c7..ad213c3 100644 --- a/manifest.toml +++ b/manifest.toml @@ -6,7 +6,7 @@ name = "Gancio" description.en = "Shared agenda for local communities, federated with the fediverse" description.fr = "Agenda partagé pour les communautés locales, fédéré avec le fédiverse" -version = "1.15.5~ynh2" +version = "1.16.2~ynh1" maintainers = ["Lapineige"] @@ -49,7 +49,7 @@ ram.runtime = "50M" [install.password] help.en = "Choose admin user password" - help.fr = "Choisissez le mot de passe du compte d'administration." + help.fr = "Choisissez le mot de passe du compte d'administration" type = "password" [resources] @@ -57,11 +57,11 @@ ram.runtime = "50M" [resources.sources] [resources.sources.main] - url = "https://framagit.org/les/gancio/-/releases/v1.15.5/downloads/gancio.tgz" - sha256 = "34090ca1a132f983529fb7582dae9d9f707256c005721933c90ad1386fe238f0" + url = "https://gancio.org/releases/gancio-v1.16.2.tgz" + sha256 = "b1c572df89744f7be9f953e7fc5e3c21e9d8f7ca43a6eda3c040a0872320d132" - autoupdate.strategy = "latest_gitlab_release" - autoupdate.asset = "^gancio.*.tgz$" + #autoupdate.strategy = "latest_gitlab_release" + #autoupdate.asset = "^gancio-v*.tgz$" [resources.system_user] allow_email = true @@ -84,4 +84,4 @@ ram.runtime = "50M" [resources.database] type = "postgresql" - + \ No newline at end of file diff --git a/scripts/backup b/scripts/backup index 129a147..9095164 100644 --- a/scripts/backup +++ b/scripts/backup @@ -28,23 +28,13 @@ ynh_backup --src_path="$install_dir" ynh_backup --src_path="$data_dir" --is_big #================================================= -# BACKUP THE NGINX CONFIGURATION +# SYSTEM CONFIGURATION #================================================= ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" -#================================================= -# SPECIFIC BACKUP -#================================================= -# BACKUP LOGROTATE -#================================================= - ynh_backup --src_path="/etc/logrotate.d/$app" -#================================================= -# BACKUP SYSTEMD -#================================================= - ynh_backup --src_path="/etc/systemd/system/$app.service" #================================================= diff --git a/scripts/install b/scripts/install index fb77999..b7a9b4c 100644 --- a/scripts/install +++ b/scripts/install @@ -9,6 +9,8 @@ source _common.sh source /usr/share/yunohost/helpers +mail=$(ynh_user_get_info --username=$admin --key=mail) + #================================================= # INSTALL DEPENDENCIES #================================================= @@ -66,8 +68,7 @@ ynh_script_progression --message="Installing app dependencies..." --weight=15 pushd $install_dir ynh_use_nodejs - ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn install # Install dependencies - #ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn build + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn install popd #================================================= diff --git a/scripts/restore b/scripts/restore index 52fcb33..a111339 100644 --- a/scripts/restore +++ b/scripts/restore @@ -65,7 +65,6 @@ chown $app:$app "/var/log/$app" yunohost service add $app --description="Federated shared agenda for local communities" --log="/var/log/$app/$app.log" - #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 78e795d..32247d8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,8 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers -upgrade_type=$(ynh_check_app_version_changed) - #================================================= # STOP SYSTEMD SERVICE #================================================= @@ -21,14 +19,10 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= +ynh_script_progression --message="Upgrading source files..." --weight=1 -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading source files..." --weight=1 - - # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --keep="config.json" -fi +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source --dest_dir="$install_dir" --keep="config.json" chown -R $app:www-data "$install_dir"