mirror of
https://github.com/YunoHost-Apps/iceshrimp_ynh.git
synced 2024-09-03 19:15:54 +02:00
Fix
This commit is contained in:
parent
ddaa3f4daa
commit
b0a3904645
6 changed files with 23 additions and 14 deletions
|
@ -20,7 +20,7 @@ Iceshrimp is a decentralized and federated social networking service, implementi
|
||||||
|
|
||||||
It was forked from Calckey Firefish (itself a fork of Misskey) in mid-2023, to focus on stability, performance and usability instead of new features.
|
It was forked from Calckey Firefish (itself a fork of Misskey) in mid-2023, to focus on stability, performance and usability instead of new features.
|
||||||
|
|
||||||
**Shipped version:** v2023.12.1~ynh1
|
**Shipped version:** 2023~ynh1
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ Iceshrimp est un service de réseau social décentralisé et fédéré, impléme
|
||||||
|
|
||||||
Il a été forké de Calckey et Firefish (lui-même forké de Misskey) à la mi-2023, afin de se concentrer sur la stabilité, les performances et la facilité d'utilisation plutôt que sur de nouvelles fonctionnalités.
|
Il a été forké de Calckey et Firefish (lui-même forké de Misskey) à la mi-2023, afin de se concentrer sur la stabilité, les performances et la facilité d'utilisation plutôt que sur de nouvelles fonctionnalités.
|
||||||
|
|
||||||
**Version incluse :** v2023.12.1~ynh1
|
**Version incluse :** 2023~ynh1
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Iceshrimp: microblogging platform
|
Description=Iceschrimp: microblogging platform
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|
|
@ -36,10 +36,6 @@ ram.runtime = "2G"
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
|
|
||||||
[resources.sources.main]
|
|
||||||
url = "https://iceshrimp.dev/iceshrimp/iceshrimp/archive/v2023.12.1.tar.gz"
|
|
||||||
sha256 = "b5f3a48e769b1b4ebdb19ec1d22a1a08472953d024337b4c5ae40c3a3a91b49c"
|
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
|
@ -31,11 +31,18 @@ ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Setting up source files..." --weight=3
|
ynh_script_progression --message="Setting up source files..." --weight=3
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
mkdir -p "$install_dir"
|
||||||
ynh_setup_source --dest_dir="$install_dir"
|
|
||||||
|
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
|
ynh_exec_warn_less git lfs install && git lfs pull
|
||||||
|
|
||||||
|
# Download, check integrity, uncompress and patch the source from GitHub
|
||||||
|
ynh_exec_warn_less 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
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -58,11 +58,17 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
|
||||||
ynh_script_progression --message="Upgrading source files..."
|
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
then
|
||||||
ynh_setup_source --dest_dir="$install_dir" --keep=".config/default.yml"
|
ynh_script_progression --message="Upgrading source files..." --weight=5
|
||||||
|
|
||||||
|
pushd $install_dir
|
||||||
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
|
ynh_exec_warn_less ynh_exec_as $app git fetch
|
||||||
|
#git checkout master
|
||||||
|
ynh_exec_warn_less ynh_exec_as $app git pull
|
||||||
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
chmod 750 "$install_dir"
|
||||||
|
|
Loading…
Reference in a new issue