mirror of
https://github.com/YunoHost-Apps/iceshrimp_ynh.git
synced 2024-09-03 19:15:54 +02:00
Fix install + manifest + upgrade
This commit is contained in:
parent
6ce27907e0
commit
6efd9990e2
3 changed files with 11 additions and 20 deletions
|
@ -5,7 +5,7 @@ name = "Iceshrimp"
|
|||
description.en = "$app is a decentralized and federated social networking service, implementing the ActivityPub standard."
|
||||
description.fr = "$app est un service de réseau social décentralisé et fédéré, implémentant le standard ActivityPub."
|
||||
|
||||
version = "2023~ynh1"
|
||||
version = "v2023.12.1~ynh1"
|
||||
|
||||
maintainers = ["oufmilo"]
|
||||
|
||||
|
@ -36,6 +36,10 @@ ram.runtime = "2G"
|
|||
|
||||
[resources]
|
||||
|
||||
[resources.sources.main]
|
||||
url = "https://iceshrimp.dev/iceshrimp/iceshrimp/archive/v2023.12.1.tar.gz"
|
||||
sha256 = "b9b59899eaddcdd94e10974e34af083bd9a9c6228046dc4d4af0f3a669ccb7ef"
|
||||
|
||||
[resources.system_user]
|
||||
|
||||
[resources.install_dir]
|
||||
|
|
|
@ -31,18 +31,11 @@ ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
|||
#=================================================
|
||||
ynh_script_progression --message="Setting up source files..." --weight=3
|
||||
|
||||
mkdir -p "$install_dir"
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
git lfs install && git lfs pull
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from GitHub
|
||||
git clone https://iceshrimp.dev/iceshrimp/iceshrimp.git "$install_dir" --quiet
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
|
|
@ -58,17 +58,11 @@ fi
|
|||
#=================================================
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
|
||||
then
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=5
|
||||
ynh_script_progression --message="Upgrading source files..."
|
||||
|
||||
pushd $install_dir
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
ynh_exec_as $app git fetch
|
||||
#git checkout master
|
||||
ynh_exec_as $app git pull
|
||||
popd
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir" --keep=".config/default.yml"
|
||||
fi
|
||||
|
||||
chmod 750 "$install_dir"
|
||||
|
|
Loading…
Add table
Reference in a new issue