mirror of
https://github.com/YunoHost-Apps/chitchatter_ynh.git
synced 2024-09-03 18:15:59 +02:00
commit
135575ecc2
8 changed files with 27 additions and 43 deletions
|
@ -27,7 +27,7 @@ Chitchatter is a free (as in both price and freedom) communication tool. It is d
|
||||||
- Ephemeral
|
- Ephemeral
|
||||||
- Decentralized
|
- Decentralized
|
||||||
|
|
||||||
**Shipped version:** 1.0~ynh4
|
**Shipped version:** 1.0~ynh5
|
||||||
|
|
||||||
**Demo:** https://chitchatter.im/
|
**Demo:** https://chitchatter.im/
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ Chitchatter is a free (as in both price and freedom) communication tool. It is d
|
||||||
- Ephemeral
|
- Ephemeral
|
||||||
- Decentralized
|
- Decentralized
|
||||||
|
|
||||||
**Version incluse :** 1.0~ynh4
|
**Version incluse :** 1.0~ynh5
|
||||||
|
|
||||||
**Démo :** https://chitchatter.im/
|
**Démo :** https://chitchatter.im/
|
||||||
|
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
;; Test complet
|
|
||||||
; Manifest
|
|
||||||
domain="domain.tld"
|
|
||||||
path="/"
|
|
||||||
is_public=1
|
|
||||||
; Checks
|
|
||||||
pkg_linter=1
|
|
||||||
setup_sub_dir=0
|
|
||||||
setup_root=1
|
|
||||||
setup_nourl=0
|
|
||||||
setup_private=1
|
|
||||||
setup_public=1
|
|
||||||
upgrade=1
|
|
||||||
#upgrade=1 from_commit=CommitHash
|
|
||||||
backup_restore=1
|
|
||||||
multi_instance=1
|
|
||||||
change_url=1
|
|
||||||
;;; Options
|
|
||||||
Email=
|
|
||||||
Notification=none
|
|
||||||
;;; Upgrade options
|
|
||||||
; commit=CommitHash
|
|
||||||
name=Name and date of the commit.
|
|
||||||
manifest_arg=domain=DOMAIN&path=PATH&is_public=1&language=fr&admin=USER&password=pass&port=666&
|
|
|
@ -1,7 +0,0 @@
|
||||||
SOURCE_URL=https://github.com/jeremyckahn/chitchatter/archive/99a9ab783815e3bddeebd0de8ad74d010e5162b1.tar.gz
|
|
||||||
SOURCE_SUM=35d5521e0e96f9271f2437bae29af1f7edfe293d80be4353fbefdcccdbfe8258
|
|
||||||
SOURCE_SUM_PRG=sha256sum
|
|
||||||
SOURCE_FORMAT=tar.gz
|
|
||||||
SOURCE_IN_SUBDIR=true
|
|
||||||
SOURCE_FILENAME=chitchatter
|
|
||||||
SOURCE_EXTRACT=true
|
|
|
@ -5,7 +5,7 @@ name = "Chitchatter"
|
||||||
description.en = "Peer-to-peer chat that is serverless, decentralized, and ephemeral"
|
description.en = "Peer-to-peer chat that is serverless, decentralized, and ephemeral"
|
||||||
description.fr = "Chat peer-to-peer sans serveur, décentralisée et éphémère"
|
description.fr = "Chat peer-to-peer sans serveur, décentralisée et éphémère"
|
||||||
|
|
||||||
version = "1.0~ynh4"
|
version = "1.0~ynh5"
|
||||||
|
|
||||||
maintainers = ["eric_G"]
|
maintainers = ["eric_G"]
|
||||||
|
|
||||||
|
@ -16,13 +16,13 @@ demo = "https://chitchatter.im/"
|
||||||
code = "https://github.com/jeremyckahn/chitchatter"
|
code = "https://github.com/jeremyckahn/chitchatter"
|
||||||
|
|
||||||
[integration]
|
[integration]
|
||||||
yunohost = ">= 11.1.11"
|
yunohost = ">= 11.1.15"
|
||||||
architectures = "all"
|
architectures = "all"
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
ldap = false
|
ldap = false
|
||||||
sso = false
|
sso = false
|
||||||
disk = "50M"
|
disk = "50M"
|
||||||
ram.build = "50M"
|
ram.build = "2800M"
|
||||||
ram.runtime = "50M"
|
ram.runtime = "50M"
|
||||||
|
|
||||||
[install]
|
[install]
|
||||||
|
@ -35,6 +35,7 @@ ram.runtime = "50M"
|
||||||
default = "visitors"
|
default = "visitors"
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
# nodejs version
|
# nodejs version
|
||||||
nodejs_version=16
|
nodejs_version=16
|
||||||
|
version_commit=442f5406ec26d001798c1a2b5a5d9a05fdc77459
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
|
|
|
@ -21,10 +21,18 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Setting up source files..." --weight=4
|
ynh_script_progression --message="Setting up source files..." --weight=4
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from GitHub
|
mkdir -p "$install_dir"
|
||||||
ynh_setup_source --dest_dir="$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
|
git config --system --add safe.directory $install_dir
|
||||||
|
|
||||||
|
# Download, check integrity, uncompress and patch the source from GitHub
|
||||||
|
git clone https://github.com/jeremyckahn/chitchatter "$install_dir" --quiet
|
||||||
|
|
||||||
|
pushd "$install_dir"
|
||||||
|
git reset --hard --quiet $version_commit
|
||||||
|
popd
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
|
|
|
@ -21,13 +21,18 @@ upgrade_type=$(ynh_check_app_version_changed)
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
ynh_script_progression --message="Upgrading source files..." --weight=5
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
pushd $install_dir
|
||||||
ynh_setup_source --dest_dir="$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
git config --system --add safe.directory $install_dir
|
||||||
|
|
||||||
|
ynh_exec_as $app git fetch
|
||||||
|
ynh_exec_as $app git reset --hard --quiet $version_commit
|
||||||
|
ynh_exec_as $app git pull
|
||||||
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue