diff --git a/README_it.md b/README_it.md new file mode 100644 index 0000000..ac00e15 --- /dev/null +++ b/README_it.md @@ -0,0 +1,50 @@ + + +# 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:** + +## Screenshot + +![Screenshot di Haste](./doc/screenshots/screenshot.png) + +## Documentazione e risorse + +- Sito web ufficiale dell’app: +- Documentazione ufficiale per gli utenti: +- Repository upstream del codice dell’app: +- Store di YunoHost: +- Segnala un problema: + +## 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:** diff --git a/scripts/install b/scripts/install index 8614dd9..f6133ce 100755 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/upgrade b/scripts/upgrade index a9ad805..4a1146b 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 #=================================================