mirror of
https://github.com/YunoHost-Apps/meilisearch_ynh.git
synced 2024-09-03 19:45:59 +02:00
Make restore working
This commit is contained in:
parent
6728494f86
commit
acd55aaedd
1 changed files with 18 additions and 0 deletions
|
@ -58,6 +58,24 @@ ynh_script_progression --message="Restoring the app main directory..." --time --
|
||||||
|
|
||||||
ynh_restore_file --origin_path="$final_path"
|
ynh_restore_file --origin_path="$final_path"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# RESTORE Meilisearch
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
ynh_script_progression --message="Download again binary for the API." --time --weight=1
|
||||||
|
|
||||||
|
arch=$(ynh_detect_arch)
|
||||||
|
|
||||||
|
if [ "$arch" != "amd64" ] && [ "$arch" != "armv8" ]
|
||||||
|
then
|
||||||
|
ynh_die --message="Your OS Architecture is not supported"
|
||||||
|
fi
|
||||||
|
|
||||||
|
release_file=meilisearch-linux-$arch
|
||||||
|
curl -OL https://github.com/meilisearch/MeiliSearch/releases/download/$latest/meilisearch-linux-$arch
|
||||||
|
chmod +x "$release_file"
|
||||||
|
mv "$release_file" /usr/bin/meilisearch
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RECREATE THE DEDICATED USER
|
# RECREATE THE DEDICATED USER
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue