From dd6ef485fd10f7afac66a1c4d9e1eb5bfac91d9c Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 5 Jun 2020 13:59:07 +0200 Subject: [PATCH] fix upgrade from 2.3.10~ynh1 ln: failed to create symbolic link './uploads': File exists --- scripts/upgrade | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index f3b8e3d..2c3f006 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -364,7 +364,13 @@ mkdir -p "$final_path/tmp/sockets" ( cd $final_path mkdir -p "public/forum" - cd public/forum && ln -s ../uploads && ln -s ../backups + cd public/forum + if [ ! -L ./uploads ]; then + ln -s ../uploads + fi + if [ ! -L ./backups ]; then + ln -s ../backups + fi ) # Set permissions to app files