mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Keep the code clear and simple...
This commit is contained in:
parent
8bee85518d
commit
567e54289a
1 changed files with 6 additions and 3 deletions
|
@ -205,9 +205,12 @@ do
|
||||||
# Backup 3rd party applications from the current nextcloud
|
# Backup 3rd party applications from the current nextcloud
|
||||||
# But do not overwrite if there is any upgrade
|
# But do not overwrite if there is any upgrade
|
||||||
# (apps directory already exists in Nextcloud archive)
|
# (apps directory already exists in Nextcloud archive)
|
||||||
for nc_app_dir in $(ls "${final_path}/apps"); do
|
for nc_app_dir in "$(ls "$final_path/apps")"
|
||||||
[ ! -d "${tmpdir}/apps/${nc_app_dir}" ] \
|
do
|
||||||
&& cp -a "${final_path}/apps/${nc_app_dir}" "${tmpdir}/apps/${nc_app_dir}"
|
if [ ! -d "$tmpdir/apps/$nc_app_dir" ]
|
||||||
|
then
|
||||||
|
cp -a "$final_path/apps/$nc_app_dir" "$tmpdir/apps/$nc_app_dir"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Replace the old nextcloud by the new one
|
# Replace the old nextcloud by the new one
|
||||||
|
|
Loading…
Add table
Reference in a new issue