[Haste] Pastebin

Hi !

I packaged Haste which is a simple pastbin app. You may know haste from https://paste.yunohost.org

Official website: GitHub - toptal/haste-server: open source pastebin written in node.js

Integration with YunoHost

  • Public or Private
  • Only work on the root path of a domain (that’s up to the app :confused: )
  • Haste command is available


sudo yunohost app install -l Haste https://github.com/YunoHost-Apps/haste_ynh


sudo yunohost app upgrade -u https://github.com/YunoHost-Apps/haste_ynh haste

Please let me know if it works for you!


Thanks for this app !

Why do you need to ask this question :

Choose a path for Haste, only / is allowed. (default: /): 

If you don’t need an answer (because you know it), you should not ask the question. If you want to warn the user, you can ask a confirmation question

I test it quickly, and the installation, upgrade, remove was ok. Backup/restore no due to your ./common.sh

You should test that with the package_checker https://github.com/YunoHost/package_check

It seems many Node.js apps can only be installed on root path :confused:

Etherpad and Duniter web admin are in same case.

In case of Duniter app that I maintain, I also ask for root path in case I could in the future install it on a sub-path :smile:

@ljf Yes I agree the question is useless, I was thinking about hardcode it but as @Moul said maybe this will be possible in the future. And I still want to inform the user that only root path is possible.

Maybe we need a “type”: “fixed” in the manifest for this kind of use case.

For the backup restore I didn’t test it yet, but I already know that restore won’t work because of this bug https://dev.yunohost.org/issues/593

I’m the one who advise @tostaki to keep this parameter for future use.

There are probably ways to make it run on subpath, with some nginx black magic incantations.
Etherpad can give you inspiration : yes, it does run on subdir on my ynh, while the app is not particularly developed for this.

Just to let you know that Hastebin is now working again :tada:

1 Like