mirror of
https://github.com/YunoHost-Apps/haste_ynh.git
synced 2024-09-03 20:36:28 +02:00
Add comments and improve texts
This commit is contained in:
parent
9db229b8d9
commit
0a67a4fffa
4 changed files with 26 additions and 10 deletions
22
README.md
22
README.md
|
@ -1,14 +1,28 @@
|
||||||
# Work In Progress : do not install in production
|
|
||||||
|
|
||||||
# Haste for YunoHost
|
# Haste for YunoHost
|
||||||
|
|
||||||
Haste is an open-source pastebin software written in node.js.
|
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
|
## Requirements
|
||||||
- Functionnal instance of [YunoHost](https://yunohost.org)
|
- 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
|
## Installation
|
||||||
From command line:
|
From command line:
|
||||||
|
|
||||||
|
@ -25,4 +39,4 @@ From command line:
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This package is published under MIT License
|
Both Haste and this package are published under MIT License
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[Unit]
|
[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=syslog.target
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# sources from https://github.com/diethnis/standalones/blob/master/hastebin.sh
|
||||||
|
|
||||||
PASTE_URL="YNH_HASTE_URL"
|
PASTE_URL="YNH_HASTE_URL"
|
||||||
|
|
||||||
haste () {
|
haste () {
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
"name": "mbugeia",
|
"name": "mbugeia",
|
||||||
"email": "maxime.bugeia@gmail.com",
|
"email": "maxime.bugeia@gmail.com",
|
||||||
"url": "http://example.com"
|
"url": "https://github.com/YunoHost-Apps/haste_ynh"
|
||||||
},
|
},
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">> 2.4.0"
|
"yunohost": ">> 2.4.0"
|
||||||
|
@ -35,8 +35,8 @@
|
||||||
"name": "path",
|
"name": "path",
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Choose a path for Haste, only root works for now.",
|
"en": "Choose a path for Haste, only / is allowed.",
|
||||||
"fr": "Choisissez un chemin pour Haste, seul la racine fonctionne."
|
"fr": "Choisissez un chemin pour Haste, seul / est autorisé."
|
||||||
},
|
},
|
||||||
"example": "/",
|
"example": "/",
|
||||||
"default": "/"
|
"default": "/"
|
||||||
|
@ -45,8 +45,8 @@
|
||||||
"name": "is_public",
|
"name": "is_public",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Is it a public site?",
|
"en": "Is it a public site? (you won't be able to use haste command easily if not)",
|
||||||
"fr": "Est-ce un site publique ?"
|
"fr": "Est-ce un site publique ? (si non, vous ne pourrez pas utiliser la commande haste facilement)"
|
||||||
},
|
},
|
||||||
"default": true
|
"default": true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue