mirror of
https://github.com/YunoHost-Apps/vaultwarden_ynh.git
synced 2024-09-03 18:26:31 +02:00
Remove dependency on rsync, use mv instead
This commit is contained in:
parent
e5ea5b0763
commit
95d6b317d1
2 changed files with 6 additions and 6 deletions
|
@ -69,4 +69,4 @@ ram.runtime = "50M"
|
||||||
admin.show_tile = false
|
admin.show_tile = false
|
||||||
|
|
||||||
[resources.apt]
|
[resources.apt]
|
||||||
packages = "libpq5, rsync"
|
packages = "libpq5"
|
||||||
|
|
|
@ -15,15 +15,15 @@ _download_vaultwarden_from_docker() {
|
||||||
# Download, check integrity, uncompress the source of vaultwarden from app.src to his build directory
|
# Download, check integrity, uncompress the source of vaultwarden from app.src to his build directory
|
||||||
docker_arg=""
|
docker_arg=""
|
||||||
# Fixup for armhf
|
# Fixup for armhf
|
||||||
if [ $YNH_ARCH == "armhf" ]; then
|
if [ "$YNH_ARCH" == "armhf" ]; then
|
||||||
docker_arg="--os_arch_variant=linux/arm/v7"
|
docker_arg="--os_arch_variant=linux/arm/v7"
|
||||||
fi
|
fi
|
||||||
ynh_docker_image_extract --dest_dir="$install_dir/build/" --image_spec="$pkg_image:$(ynh_app_upstream_version)" $docker_arg
|
ynh_docker_image_extract --dest_dir="$install_dir/build/" --image_spec="$pkg_image:$(ynh_app_upstream_version)" $docker_arg
|
||||||
|
|
||||||
|
# Move files from the extract to the live directory
|
||||||
|
ynh_secure_remove --file="$install_dir/live/"
|
||||||
mkdir -p "$install_dir/live/"
|
mkdir -p "$install_dir/live/"
|
||||||
|
mv -f "$install_dir/build/"{vaultwarden,web-vault} "$install_dir/live/"
|
||||||
mv -f "$install_dir/build/vaultwarden" "$install_dir/live/vaultwarden"
|
|
||||||
rsync -a "$install_dir/build/web-vault/" "$install_dir/live/web-vault/"
|
|
||||||
ynh_secure_remove --file="$install_dir/build"
|
ynh_secure_remove --file="$install_dir/build"
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
chmod 750 "$install_dir"
|
||||||
|
|
Loading…
Reference in a new issue