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:
commit
e6077697d4
3 changed files with 64 additions and 8 deletions
50
README_it.md
Normal file
50
README_it.md
Normal 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
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/haste)  
|
||||
|
||||
[](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
|
||||
|
||||

|
||||
|
||||
## Documentazione e risorse
|
||||
|
||||
- Sito web ufficiale dell’app: <http://hastebin.com/>
|
||||
- Documentazione ufficiale per gli utenti: <https://hastebin.com/about.md>
|
||||
- Repository upstream del codice dell’app: <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 quest’app:** <https://yunohost.org/packaging_apps>
|
|
@ -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"
|
||||
|
||||
#=================================================
|
||||
# INSTALL HASTEBIN
|
||||
#=================================================
|
||||
ynh_script_progression --message="Installing $app..." --weight=5
|
||||
# FIXME Currently, the log is only redirected to syslog.
|
||||
mkdir -p /var/log/$app
|
||||
touch /var/log/$app/$app.log
|
||||
chown $app -R /var/log/$app
|
||||
|
||||
pushd "$install_dir"
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less $ynh_npm install
|
||||
popd
|
||||
ynh_use_logrotate
|
||||
|
||||
yunohost service add $app --description="Haste is a pastebin software" --log="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# ADD HASTE AS A BINARY FILE
|
||||
|
|
|
@ -31,6 +31,13 @@ ynh_script_progression --message="Upgrading dependencies..." --weight=8
|
|||
|
||||
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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue