seafile/seafile-3.1.12-setup-fix-avatars.patch
Silvan Calarco 5b8989a322 provide required symlink /usr/share/seafile/seafile-server/seahub
patch setup script to fix preparation of avatars directory [release 3.1.12-2mamba;Thu Jan 22 2015]
2024-01-05 17:43:08 +01:00

13 lines
597 B
Diff

--- seafile-3.1.12/scripts/setup-seafile-mysql.py.orig 2015-01-01 21:57:52.000000000 +0100
+++ seafile-3.1.12/scripts/setup-seafile-mysql.py 2015-01-22 21:26:27.425379254 +0100
@@ -1081,8 +1081,7 @@
if not os.path.exists(seahub_data_dir):
os.mkdir(seahub_data_dir)
- shutil.move(orig_avatar_dir, dest_avatar_dir)
- os.symlink('../../../seahub-data/avatars', orig_avatar_dir)
+ shutil.copytree(orig_avatar_dir, dest_avatar_dir)
except Exception, e:
Utils.error('Failed to prepare seahub avatars dir: %s' % e)