diff --git a/server-ce/Gruntfile.coffee b/server-ce/Gruntfile.coffee index 954bf645cb..a2d5e1ef1c 100644 --- a/server-ce/Gruntfile.coffee +++ b/server-ce/Gruntfile.coffee @@ -431,10 +431,12 @@ module.exports = (grunt) -> for dir in ["data/user_files", "tmp/uploads", "data/compiles", "data/cache", "tmp/dumpFolder"] after_install_script += """ mkdir -p /var/lib/sharelatex/#{dir} + """ after_install_script += """ chown -R sharelatex:sharelatex /var/lib/sharelatex + """ for service in SERVICES diff --git a/server-ce/package/scripts/after_install.sh b/server-ce/package/scripts/after_install.sh index fa47d7d94b..034a5bf655 100644 --- a/server-ce/package/scripts/after_install.sh +++ b/server-ce/package/scripts/after_install.sh @@ -9,7 +9,13 @@ mkdir -p /var/log/sharelatex chown sharelatex:sharelatex /var/log/sharelatex mkdir -p /var/lib/sharelatex -mkdir -p /var/lib/sharelatex/data/user_filesmkdir -p /var/lib/sharelatex/tmp/uploadsmkdir -p /var/lib/sharelatex/data/compilesmkdir -p /var/lib/sharelatex/data/cachemkdir -p /var/lib/sharelatex/tmp/dumpFolderchown -R sharelatex:sharelatex /var/lib/sharelatexservice sharelatex-web restart +mkdir -p /var/lib/sharelatex/data/user_files +mkdir -p /var/lib/sharelatex/tmp/uploads +mkdir -p /var/lib/sharelatex/data/compiles +mkdir -p /var/lib/sharelatex/data/cache +mkdir -p /var/lib/sharelatex/tmp/dumpFolder +chown -R sharelatex:sharelatex /var/lib/sharelatex +service sharelatex-web restart service sharelatex-document-updater restart service sharelatex-clsi restart service sharelatex-filestore restart