diff options
author | Joffrey Darcq | 2018-06-03 11:08:47 +0200 |
---|---|---|
committer | Joffrey Darcq | 2018-06-03 11:08:47 +0200 |
commit | 44603070bcd87db5304a0550b3b0f60ed4bb8f56 (patch) | |
tree | f6c1a22748e3485945d9104da6adb1da3dee49d1 /fix_mysql_support.diff | |
parent | 0992037d36f3175296d361fbf1acc383bfc1f78c (diff) | |
download | aur-44603070bcd87db5304a0550b3b0f60ed4bb8f56.tar.gz |
updpkg: 6.3.0
Diffstat (limited to 'fix_mysql_support.diff')
-rw-r--r-- | fix_mysql_support.diff | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/fix_mysql_support.diff b/fix_mysql_support.diff index 8fe520f34511..e9a3aa26a9f1 100644 --- a/fix_mysql_support.diff +++ b/fix_mysql_support.diff @@ -1,21 +1,3 @@ -diff --git a/tools/seafile-admin b/tools/seafile-admin -index 5e3658b..63af448 100755 ---- a/tools/seafile-admin -+++ b/tools/seafile-admin -@@ -861,6 +861,13 @@ def check_necessary_files(): - os.path.join(cwd, 'conf', 'seahub_settings.py'), - ] - -+ # seahub.db isn't create with a MySQL installation and crash the startup -+ with open(files[3], 'r') as f: -+ for line in f: -+ if 'DATABASES' in line: -+ del(files[2]) -+ break -+ - for fpath in files: - if not os.path.exists(fpath): - error('%s not found' % fpath) diff --git a/scripts/setup-seafile-mysql.sh b/scripts/setup-seafile-mysql.sh index cb8b8c5..a8f18df 100755 --- a/scripts/setup-seafile-mysql.sh @@ -32,16 +14,18 @@ diff --git a/scripts/setup-seafile-mysql.py b/scripts/setup-seafile-mysql.py index 596687c..39ed520 100644 --- a/scripts/setup-seafile-mysql.py +++ b/scripts/setup-seafile-mysql.py -@@ -301,7 +301,7 @@ class EnvManager(object): +@@ -301,9 +301,9 @@ class EnvManager(object): def __init__(self): self.install_path = os.path.dirname(os.path.abspath(__file__)) self.top_dir = os.path.dirname(self.install_path) - self.bin_dir = os.path.join(self.install_path, 'seafile', 'bin') + self.bin_dir = '/usr/bin' self.central_config_dir = os.path.join(self.top_dir, 'conf') + self.central_pids_dir = os.path.join(self.top_dir, 'pids') + self.central_logs_dir = os.path.join(self.top_dir, 'logs') Utils.must_mkdir(self.central_config_dir) -@@ -311,7 +311,6 @@ class EnvManager(object): +@@ -313,7 +313,6 @@ class EnvManager(object): Utils.error('"%s" not found' % path) paths = [ |