1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Revert "Don't use /tmp anymore"

This reverts commit ea5306e54f.
This commit is contained in:
Mickaël Martin 2019-02-21 18:24:14 +01:00
parent a348c94d67
commit cbdaa19534

View file

@ -189,7 +189,7 @@ do
ynh_replace_string "__SHA256_SUM__" "$nextcloud_source_sha256" "../conf/app.src"
# Create a temporary directory
tmpdir="${final_path}_temp_upgrade_dir"
tmpdir=$(mktemp -d)
# Install the next nextcloud version in $tmpdir
ynh_setup_source "$tmpdir"
@ -208,7 +208,6 @@ do
# Replace the old nextcloud by the new one
ynh_secure_remove "$final_path"
mv "$tmpdir" "$final_path"
ynh_secure_remove "$tmpdir"
# Set write access for the following commands
chown -R $app: "$final_path" "$datadir"