1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/haste_ynh.git synced 2024-09-03 20:36:28 +02:00

Merge branch 'master' into testing

This commit is contained in:
eric_G 2024-06-18 09:01:24 +02:00 committed by GitHub
commit e6077697d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 64 additions and 8 deletions

50
README_it.md Normal file
View file

@ -0,0 +1,50 @@
<!--
N.B.: Questo README è stato automaticamente generato da <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
NON DEVE essere modificato manualmente.
-->
# Haste per YunoHost
[![Livello di integrazione](https://dash.yunohost.org/integration/haste.svg)](https://dash.yunohost.org/appci/app/haste) ![Stato di funzionamento](https://ci-apps.yunohost.org/ci/badges/haste.status.svg) ![Stato di manutenzione](https://ci-apps.yunohost.org/ci/badges/haste.maintain.svg)
[![Installa Haste con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=haste)
*[Leggi questo README in altre lingue.](./ALL_README.md)*
> *Questo pacchetto ti permette di installare Haste su un server YunoHost in modo semplice e veloce.*
> *Se non hai YunoHost, consulta [la guida](https://yunohost.org/install) per imparare a installarlo.*
## Panoramica
Haste is an open-source pastebin software written in node.js, which is easily installable in any network. YunoHost Project uses Haste as pastebin for log sharing: [paste.yunohost.org](https://paste.yunohost.org/)
**Versione pubblicata:** 0.1.2023.09.21~ynh2
**Prova:** <http://hastebin.com/>
## Screenshot
![Screenshot di Haste](./doc/screenshots/screenshot.png)
## Documentazione e risorse
- Sito web ufficiale dellapp: <http://hastebin.com/>
- Documentazione ufficiale per gli utenti: <https://hastebin.com/about.md>
- Repository upstream del codice dellapp: <https://github.com/seejohnrun/haste-server>
- Store di YunoHost: <https://apps.yunohost.org/app/haste>
- Segnala un problema: <https://github.com/YunoHost-Apps/haste_ynh/issues>
## Informazioni per sviluppatori
Si prega di inviare la tua pull request alla [branch di `testing`](https://github.com/YunoHost-Apps/haste_ynh/tree/testing).
Per provare la branch di `testing`, si prega di procedere in questo modo:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/haste_ynh/tree/testing --debug
o
sudo yunohost app upgrade haste -u https://github.com/YunoHost-Apps/haste_ynh/tree/testing --debug
```
**Maggiori informazioni riguardo il pacchetto di questapp:** <https://yunohost.org/packaging_apps>

View file

@ -56,15 +56,14 @@ cp ../sources/jquery.min.js "$install_dir/static/jquery.min.js"
ynh_replace_string --match_string="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" --replace_string="jquery.min.js" --target_file="$install_dir/static/index.html" ynh_replace_string --match_string="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" --replace_string="jquery.min.js" --target_file="$install_dir/static/index.html"
#================================================= # FIXME Currently, the log is only redirected to syslog.
# INSTALL HASTEBIN mkdir -p /var/log/$app
#================================================= touch /var/log/$app/$app.log
ynh_script_progression --message="Installing $app..." --weight=5 chown $app -R /var/log/$app
pushd "$install_dir" ynh_use_logrotate
ynh_use_nodejs
ynh_exec_warn_less $ynh_npm install yunohost service add $app --description="Haste is a pastebin software" --log="/var/log/$app/$app.log"
popd
#================================================= #=================================================
# ADD HASTE AS A BINARY FILE # ADD HASTE AS A BINARY FILE

View file

@ -31,6 +31,13 @@ ynh_script_progression --message="Upgrading dependencies..." --weight=8
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
#=================================================
# UPGRADE NODEJS
#=================================================
ynh_script_progression --message="Upgrading dependencies..." --weight=8
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================