mirror of
https://github.com/YunoHost-Apps/haste_ynh.git
synced 2024-09-03 20:36:28 +02:00
parent
e08a751c31
commit
97423dd22c
7 changed files with 24 additions and 15 deletions
|
@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
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/)
|
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/)
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 0.1.0~ynh8
|
**Shipped version:** 0.1.0~ynh9
|
||||||
|
|
||||||
**Demo:** http://hastebin.com/
|
**Demo:** http://hastebin.com/
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ The [Haste-client](https://github.com/seejohnrun/haste-client) is a simple clien
|
||||||
|
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
||||||
* Official app website: https://example.com
|
* Official app website: http://hastebin.com/
|
||||||
* Official user documentation: https://hastebin.com/about.md
|
* Official user documentation: https://hastebin.com/about.md
|
||||||
* Upstream app code repository: https://github.com/seejohnrun/haste-server
|
* Upstream app code repository: https://github.com/seejohnrun/haste-server
|
||||||
* YunoHost documentation for this app: https://yunohost.org/app_haste
|
* YunoHost documentation for this app: https://yunohost.org/app_haste
|
||||||
|
|
|
@ -14,7 +14,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
|
||||||
Haste est un logiciel pastebin open-source écrit en node.js, facilement installable sur n'importe quel réseau. Le projet YunoHost utilise Haste comme pastebin pour le partage de log : [paste.yunohost.org](https://paste.yunohost.org/)
|
Haste est un logiciel pastebin open-source écrit en node.js, facilement installable sur n'importe quel réseau. Le projet YunoHost utilise Haste comme pastebin pour le partage de log : [paste.yunohost.org](https://paste.yunohost.org/)
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 0.1.0~ynh8
|
**Version incluse :** 0.1.0~ynh9
|
||||||
|
|
||||||
**Démo :** http://hastebin.com/
|
**Démo :** http://hastebin.com/
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ Le [client Haste](https://github.com/seejohnrun/haste-client) est un client simp
|
||||||
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
* Site officiel de l'app : https://example.com
|
* Site officiel de l'app : http://hastebin.com/
|
||||||
* Documentation officielle utilisateur : https://hastebin.com/about.md
|
* Documentation officielle utilisateur : https://hastebin.com/about.md
|
||||||
* Dépôt de code officiel de l'app : https://github.com/seejohnrun/haste-server
|
* Dépôt de code officiel de l'app : https://github.com/seejohnrun/haste-server
|
||||||
* Documentation YunoHost pour cette app : https://yunohost.org/app_haste
|
* Documentation YunoHost pour cette app : https://yunohost.org/app_haste
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
;; Test complet
|
;; Test complet
|
||||||
; Manifest
|
; Manifest
|
||||||
domain="domain.tld" (DOMAIN)
|
domain="domain.tld"
|
||||||
path="/" (PATH)
|
path="/"
|
||||||
is_public=1 (PUBLIC|public=1|private=0)
|
is_public=1
|
||||||
port="7777" (PORT)
|
port="7777"
|
||||||
; Checks
|
; Checks
|
||||||
pkg_linter=1
|
pkg_linter=1
|
||||||
setup_sub_dir=0
|
setup_sub_dir=0
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
SOURCE_URL=https://github.com/seejohnrun/haste-server/archive/5d2965ffc5d9b309ef6d4be9e8c2288c83d72c73.tar.gz
|
SOURCE_URL=https://github.com/seejohnrun/haste-server/archive/7af15cc32de1c5381e713aa4c1d1e996ef3592be.tar.gz
|
||||||
SOURCE_SUM=099bf0cec59614f0f6151f0809c8580b85d5fe701892dda96263b8aee743d5d8
|
SOURCE_SUM=0173723915f46a7cfa5bc49e9b90afcfcd7afe855b2e97da3b5c214d7f87ab20
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
SOURCE_FILENAME=
|
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
"en": "Open-source pastebin allowing to upload texts",
|
"en": "Open-source pastebin allowing to upload texts",
|
||||||
"fr": "Pastebin open-source permettant de mettre en ligne du texte"
|
"fr": "Pastebin open-source permettant de mettre en ligne du texte"
|
||||||
},
|
},
|
||||||
"version": "0.1.0~ynh8",
|
"version": "0.1.0~ynh9",
|
||||||
"url": "http://hastebin.com/",
|
"url": "http://hastebin.com/",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"website": "https://example.com",
|
"website": "http://hastebin.com/",
|
||||||
"demo": "http://hastebin.com/",
|
"demo": "http://hastebin.com/",
|
||||||
"userdoc": "https://hastebin.com/about.md",
|
"userdoc": "https://hastebin.com/about.md",
|
||||||
"code": "https://github.com/seejohnrun/haste-server"
|
"code": "https://github.com/seejohnrun/haste-server"
|
||||||
|
|
|
@ -78,6 +78,17 @@ ynh_secure_remove --file="/usr/bin/$app"
|
||||||
|
|
||||||
ynh_secure_remove --file="$data_path"
|
ynh_secure_remove --file="$data_path"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# REMOVE DATA DIR
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
# Remove the data directory if --purge option is used
|
||||||
|
if [ "${YNH_APP_PURGE:-0}" -eq 1 ]
|
||||||
|
then
|
||||||
|
ynh_script_progression --message="Removing app data directory..." --weight=1
|
||||||
|
ynh_secure_remove --file="$data_path"
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE NODEJS
|
# REMOVE NODEJS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -33,8 +33,7 @@ data_path=$(ynh_app_setting_get --app=$app --key=data_path)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Validating restoration parameters..." --weight=2
|
ynh_script_progression --message="Validating restoration parameters..." --weight=2
|
||||||
|
|
||||||
test ! -d $final_path \
|
test ! -d $final_path || ynh_die "There is already a directory: $final_path "
|
||||||
|| ynh_die "There is already a directory: $final_path "
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD RESTORATION STEPS
|
# STANDARD RESTORATION STEPS
|
||||||
|
|
Loading…
Reference in a new issue