diff --git a/README.md b/README.md index 29c173d..7fcc9da 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,28 @@ -# Work In Progress : do not install in production - # Haste for YunoHost Haste is an open-source pastebin software written in node.js. -A publicly available version can be found at hastebin.com +[Haste Github repository](https://github.com/seejohnrun/haste-server) + +A publicly available version can be found at [http://hastebin.com/](http://hastebin.com/) ## Requirements - Functionnal instance of [YunoHost](https://yunohost.org) +## `haste` command + +With this package is included the `haste` command based on this: +https://github.com/diethnis/standalones/blob/master/hastebin.sh + +This allow to pipe text to it and upload the text on your haste instance. You can also install it on your local computer by copying the file /usr/bin/haste on a computer that has bash and curl. + +``` +bash +cat LICENSE | haste +######################################################################## 100,0% +https://haste.example.com/zuyejeduzu +``` + ## Installation From command line: @@ -25,4 +39,4 @@ From command line: ## License -This package is published under MIT License +Both Haste and this package are published under MIT License diff --git a/conf/haste.service b/conf/haste.service index e459ae6..136d796 100644 --- a/conf/haste.service +++ b/conf/haste.service @@ -1,5 +1,5 @@ [Unit] -Description=Haste is an open-source pastebin software written in node.js +Description=Haste is an open-source pastebin software After=syslog.target After=network.target diff --git a/conf/haste.sh b/conf/haste.sh index e4e5ce7..ae811b0 100644 --- a/conf/haste.sh +++ b/conf/haste.sh @@ -1,5 +1,7 @@ #!/bin/bash +# sources from https://github.com/diethnis/standalones/blob/master/hastebin.sh + PASTE_URL="YNH_HASTE_URL" haste () { diff --git a/manifest.json b/manifest.json index 872012a..188a1ff 100644 --- a/manifest.json +++ b/manifest.json @@ -11,7 +11,7 @@ "maintainer": { "name": "mbugeia", "email": "maxime.bugeia@gmail.com", - "url": "http://example.com" + "url": "https://github.com/YunoHost-Apps/haste_ynh" }, "requirements": { "yunohost": ">> 2.4.0" @@ -35,8 +35,8 @@ "name": "path", "type": "path", "ask": { - "en": "Choose a path for Haste, only root works for now.", - "fr": "Choisissez un chemin pour Haste, seul la racine fonctionne." + "en": "Choose a path for Haste, only / is allowed.", + "fr": "Choisissez un chemin pour Haste, seul / est autorisé." }, "example": "/", "default": "/" @@ -45,8 +45,8 @@ "name": "is_public", "type": "boolean", "ask": { - "en": "Is it a public site?", - "fr": "Est-ce un site publique ?" + "en": "Is it a public site? (you won't be able to use haste command easily if not)", + "fr": "Est-ce un site publique ? (si non, vous ne pourrez pas utiliser la commande haste facilement)" }, "default": true }