diff --git a/README.md b/README.md index 68124f2..37bb18f 100644 --- a/README.md +++ b/README.md @@ -31,29 +31,22 @@ A networked place to store posted web documents. This is meant to allow for dist No configuration parameter available for now. -## Documentation - - * Official documentation: Link to the official documentation of this app - * YunoHost documentation: If specific documentation is needed, feel free to contribute. - ## YunoHost specific features #### Multi-users support LDAP and HTTP are not supported -The app be used by multiple users, anonymously. +The app can be used by multiple users, anonymously. #### Supported architectures * x86-64b - [![Build Status](https://ci-apps.yunohost.org/ci/logs/distbin%20%28Community%29.svg)](https://ci-apps.yunohost.org/ci/apps/distbin/) * ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/distbin%20%28Community%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/distbin/) * Jessie x86-64b - [![Build Status](https://ci-stretch.nohost.me/ci/logs/distbin%20%28Community%29.svg)](https://ci-stretch.nohost.me/ci/apps/distbin/) -* Testing x86-64b - [![Build Status](https://ci-apps-unstable.yunohost.org/ci/logs/distbin%20%28Community%29%20%28testing%29.svg)](https://ci-apps-unstable.yunohost.org/ci/apps/distbin/) -* Unstable x86-64b - [![Build Status](https://ci-apps-unstable.yunohost.org/ci/logs/distbin%20%28Community%29%20%28unstable%29.svg)](https://ci-apps-unstable.yunohost.org/ci/apps/distbin/) ## Limitations -* No known limitations. +* No known limitations. But still developping. ## Links diff --git a/manifest.json b/manifest.json index fa6752d..3906783 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Distributed pastebin with ActivityPub.", "fr": "Pastebin distribué utilisant le protocole ActivityPub." }, - "version": "1.0~ynh2", + "version": "1.0~ynh3", "url": "https://example.com", "license": "Apache-2.0", "maintainer": { diff --git a/scripts/install b/scripts/install index dfdc304..eb4a67f 100644 --- a/scripts/install +++ b/scripts/install @@ -16,7 +16,6 @@ source /usr/share/yunohost/helpers ynh_clean_setup () { ### Remove this function if there's nothing to clean before calling the remove script. - read -p "Press any key..." ynh_clean_check_starting } # Exit if an error occurs during the execution of the script @@ -100,8 +99,6 @@ ynh_app_setting_set $app port $port ynh_install_nodejs 8 -#ynh_install_app_dependencies - #================================================= # CREATE A MYSQL DATABASE #================================================= diff --git a/scripts/remove b/scripts/remove index baad67d..fa659eb 100644 --- a/scripts/remove +++ b/scripts/remove @@ -46,7 +46,6 @@ ynh_remove_systemd_config #================================================= # Remove metapackage and its dependencies -ynh_use_nodejs ynh_remove_nodejs ynh_remove_app_dependencies diff --git a/scripts/restore b/scripts/restore index 9f613e6..831ccd5 100644 --- a/scripts/restore +++ b/scripts/restore @@ -92,9 +92,9 @@ chown -R $app:$app /var/log/$app # REINSTALL DEPENDENCIES #================================================= -ynh_install_nodejs 8 - +# Define and install dependencies #ynh_install_app_dependencies +ynh_install_nodejs 8 #================================================= # RESTORE SYSTEMD diff --git a/scripts/upgrade b/scripts/upgrade index 2682a28..cbfd5cd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -101,10 +101,9 @@ ynh_add_nginx_config # UPGRADE DEPENDENCIES #================================================= +#ynh_install_app_dependencies deb1 deb2 ynh_install_nodejs 8 -#ynh_install_app_dependencies - #================================================= # CREATE DEDICATED USER #================================================= @@ -157,10 +156,10 @@ ynh_use_logrotate --non-append #================================================= # SETUP SYSTEMD #================================================= -ynh_use_nodejs + +# Create a dedicated systemd config ynh_replace_string "__NODEJS_PATH__" "$nodejs_path" "../conf/systemd.service" ynh_replace_string "__PORT__" "$port" "../conf/systemd.service" -# Create a dedicated systemd config ynh_add_systemd_config #=================================================