mirror of
https://github.com/YunoHost-Apps/gotosocial_ynh.git
synced 2024-09-03 19:16:06 +02:00
meh, i'm tired
This commit is contained in:
parent
3d6ae25c92
commit
40dc6422a1
2 changed files with 15 additions and 10 deletions
|
@ -184,10 +184,17 @@ ynh_script_progression --message="Setting up source files..." --weight=1
|
||||||
### `ynh_setup_source` use the file conf/app.src
|
### `ynh_setup_source` use the file conf/app.src
|
||||||
|
|
||||||
# detect_arch comes from _common.sh / personnal helpers
|
# detect_arch comes from _common.sh / personnal helpers
|
||||||
architecture=$(detect_arch)
|
architecture="$(detect_arch)"
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# compare is the system arch is different from the binary arch
|
||||||
ynh_setup_source --dest_dir="$final_path" --source_id="$architecture" --keep="config.yaml"
|
# if so, download the correct binary
|
||||||
|
if [ "$architecture" != "$(file "$final_path"/gotosocial | cut -d ',' -f 2 | tr -d ' ')" ]
|
||||||
|
then
|
||||||
|
ynh_script_progression --message="Migrating binary architecture..."
|
||||||
|
|
||||||
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
|
ynh_setup_source --dest_dir="$final_path" --source_id="$architecture" --keep="config.yaml"
|
||||||
|
fi
|
||||||
|
|
||||||
# FIXME: this should be managed by the core in the future
|
# FIXME: this should be managed by the core in the future
|
||||||
# Here, as a packager, you may have to tweak the ownerhsip/permissions
|
# Here, as a packager, you may have to tweak the ownerhsip/permissions
|
||||||
|
|
|
@ -338,15 +338,13 @@ ynh_system_user_create --username="$app" --home_dir="$final_path"
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# detect_arch comes from _common.sh / personnal helpers
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
architecture="$(detect_arch)"
|
|
||||||
|
|
||||||
# compare is the system arch is different from the binary arch
|
|
||||||
# if so, download the correct binary
|
|
||||||
if [ "$architecture" != "$(file "$final_path"/gotosocial | cut -d ',' -f 2 | tr -d ' ')" ]
|
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Migrating binary architecture..."
|
ynh_script_progression --message="Upgrading source files..."
|
||||||
|
|
||||||
|
# detect_arch comes from _common.sh / personnal helpers
|
||||||
|
architecture=$(detect_arch)
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$final_path" --source_id="$architecture" --keep="config.yaml"
|
ynh_setup_source --dest_dir="$final_path" --source_id="$architecture" --keep="config.yaml"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue