1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grocy_ynh.git synced 2024-09-03 19:25:54 +02:00

Merge branch 'testing' into issue-and-pr-template

This commit is contained in:
Éric Gaspar 2021-05-13 21:05:46 +02:00 committed by GitHub
commit 6da93d7f63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View file

@ -6,7 +6,7 @@
*[Lire ce readme en français.](./README_fr.md)*
> *This package allows you to install Grocy quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.*
## Overview
Grocy is a web-based self-hosted groceries & household management solution for your home.

View file

@ -6,7 +6,7 @@
*[Read this readme in english.](./README.md)*
> *Ce package vous permet d'installer Grocy rapidement et simplement sur un serveur YunoHost.
Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/#/install) pour apprendre comment l'installer.*
Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/install) pour apprendre comment l'installer.*
## Vue d'ensemble
Grocy is a web-based self-hosted groceries & household management solution for your home.

View file

@ -69,22 +69,22 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=5
# Create a temporary directory
tmpdir="$(mktemp -d)"
#tmpdir="$(mktemp -d)"
# Backup the config file in the temp dir
cp -R "$final_path/data" "$tmpdir/data"
#cp -R "$final_path/data" "$tmpdir/data"
# Remove the app directory securely
ynh_secure_remove --file="$final_path"
#ynh_secure_remove --file="$final_path"
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/data"
# Copy the admin saved settings from tmp directory to final path
cp -RT "$tmpdir/data" "$final_path/data"
#cp -RT "$tmpdir/data" "$final_path/data"
# Remove the tmp directory securely
ynh_secure_remove --file="$tmpdir"
#ynh_secure_remove --file="$tmpdir"
fi
#=================================================