mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
cleaning
This commit is contained in:
parent
432a5afefb
commit
22b9521ec3
3 changed files with 7 additions and 22 deletions
|
@ -5,7 +5,7 @@ name = "Rocket.Chat"
|
|||
description.en = "Team collaboration communication platform"
|
||||
description.fr = "Plateforme de communication collaborative en équipe"
|
||||
|
||||
version = "6.7.2~ynh1"
|
||||
version = "6.8.0~ynh1"
|
||||
|
||||
maintainers = ["eric_G"]
|
||||
|
||||
|
@ -50,8 +50,8 @@ ram.runtime = "50M"
|
|||
[resources.sources]
|
||||
|
||||
[resources.sources.main]
|
||||
url = "https://releases.rocket.chat/6.7.2/download"
|
||||
sha256 = "d62431f144d23195ebf839e9e875e4120ffdbda8253d181baf51111fcb0f098b"
|
||||
url = "https://releases.rocket.chat/6.8.0/download"
|
||||
sha256 = "9c306d586191a630c76ce981254a1a68d1d14bb4ce3656a321d93c71d94f2944"
|
||||
in_subdir = true
|
||||
extract = true
|
||||
rename = "rocket.chat.tgz"
|
||||
|
|
|
@ -22,23 +22,13 @@ ynh_print_info --message="Declaring files to be backed up..."
|
|||
ynh_backup --src_path="$install_dir"
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE NGINX CONFIGURATION
|
||||
# SYSTEM CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC BACKUP
|
||||
#=================================================
|
||||
# BACKUP LOGROTATE
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/etc/logrotate.d/$app"
|
||||
|
||||
#=================================================
|
||||
# BACKUP SYSTEMD
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/etc/systemd/system/$app.service"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -48,15 +48,10 @@ fi
|
|||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=22
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=22
|
||||
# Remove the app directory securely
|
||||
ynh_secure_remove --file="$install_dir"
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
fi
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir" --full_replace=1
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:$app "$install_dir"
|
||||
|
|
Loading…
Reference in a new issue