1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/discourse_ynh.git synced 2024-09-03 18:26:18 +02:00

fix upgrade from 2.3.10~ynh1

ln: failed to create symbolic link './uploads': File exists
This commit is contained in:
yalh76 2020-06-05 13:59:07 +02:00
parent d6fa5113e2
commit dd6ef485fd

View file

@ -364,7 +364,13 @@ mkdir -p "$final_path/tmp/sockets"
( (
cd $final_path cd $final_path
mkdir -p "public/forum" 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 # Set permissions to app files