mirror of
https://github.com/YunoHost-Apps/element_ynh.git
synced 2024-09-03 18:36:08 +02:00
parent
bf3e38add5
commit
a8edd1f684
2 changed files with 8 additions and 8 deletions
|
@ -2,8 +2,8 @@
|
|||
auto_remove=1
|
||||
# Commentaire ignoré
|
||||
; Manifest
|
||||
domain="$DOMAIN" (DOMAIN)
|
||||
path="/path" (PATH)
|
||||
domain="domain.tld" (DOMAIN)
|
||||
path="/path" (PATH)
|
||||
default_home_server="matrix.org"
|
||||
is_public=1 (PUBLIC|public=1|private=0)
|
||||
; Checks
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
## Adapt md5sum while you update app
|
||||
md5sum="f87717d87099267295081895d968e0c2"
|
||||
verctor_version="0.9.9"
|
||||
md5sum="c4497b86b75d283ce978f07d5c6b2b0e"
|
||||
verctor_version="0.9.10"
|
||||
|
||||
init_script() {
|
||||
# Exit on command errors and treat unset variables as an error
|
||||
|
@ -18,14 +18,14 @@ init_script() {
|
|||
|
||||
get_source() {
|
||||
|
||||
wget -q -O '/tmp/vector.tar.gz' "https://github.com/vector-im/riot-web/releases/download/v${verctor_version}/vector-v${verctor_version}.tar.gz"
|
||||
wget -q -O '/tmp/riot.tar.gz' "https://github.com/vector-im/riot-web/releases/download/v${verctor_version}/riot-v${verctor_version}.tar.gz"
|
||||
|
||||
if [[ ! -e '/tmp/vector.tar.gz' ]] || [[ $(md5sum '/tmp/vector.tar.gz' | cut -d' ' -f1) != $md5sum ]]
|
||||
if [[ ! -e '/tmp/riot.tar.gz' ]] || [[ $(md5sum '/tmp/riot.tar.gz' | cut -d' ' -f1) != $md5sum ]]
|
||||
then
|
||||
ynh_die "Error : can't get Riot source"
|
||||
fi
|
||||
tar xzf '/tmp/vector.tar.gz'
|
||||
sudo cp -r vector-v${verctor_version}/. $final_path/
|
||||
tar xzf '/tmp/riot.tar.gz'
|
||||
sudo cp -r riot-v${verctor_version}/. $final_path/
|
||||
sudo chown www-data -R $final_path
|
||||
sudo chmod 740 -R $final_path
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue