Merge pull request #63 from haiwen/fix-no-directory

fix the 'no /tmp/seafile-office-output/ file or directory'
This commit is contained in:
Daniel Pan 2019-06-06 11:27:06 +08:00 committed by GitHub
commit a5bf55d221
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -338,6 +338,7 @@ ExecStart=${SEAFILE_SERVER_HOME}/seafile-server-latest/seafile.sh start
ExecStop=${SEAFILE_SERVER_HOME}/seafile-server-latest/seafile.sh stop ExecStop=${SEAFILE_SERVER_HOME}/seafile-server-latest/seafile.sh stop
User=${SEAFILE_SERVER_USER} User=${SEAFILE_SERVER_USER}
Group=${SEAFILE_SERVER_USER} Group=${SEAFILE_SERVER_USER}
LimitNOFILE=infinity
Type=oneshot Type=oneshot
RemainAfterExit=yes RemainAfterExit=yes
@ -523,7 +524,10 @@ fi
# Fix permissions # Fix permissions
# ------------------------------------------- # -------------------------------------------
chown ${SEAFILE_SERVER_USER}:${SEAFILE_SERVER_USER} -R ${SEAFILE_SERVER_HOME} chown ${SEAFILE_SERVER_USER}:${SEAFILE_SERVER_USER} -R ${SEAFILE_SERVER_HOME}
chown ${SEAFILE_SERVER_USER}:${SEAFILE_SERVER_USER} -R /tmp/seafile-office-output/
if [[ -d /tmp/seafile-office-output/ ]]; then
chown ${SEAFILE_SERVER_USER}:${SEAFILE_SERVER_USER} -R /tmp/seafile-office-output/
fi
# ------------------------------------------- # -------------------------------------------
# Restart seafile server # Restart seafile server

View File

@ -434,7 +434,9 @@ fi
# Fix permissions # Fix permissions
# ------------------------------------------- # -------------------------------------------
chown ${SEAFILE_SERVER_USER}:${SEAFILE_SERVER_USER} -R ${SEAFILE_SERVER_HOME} chown ${SEAFILE_SERVER_USER}:${SEAFILE_SERVER_USER} -R ${SEAFILE_SERVER_HOME}
chown ${SEAFILE_SERVER_USER}:${SEAFILE_SERVER_USER} -R /tmp/seafile-office-output/ if [[ -d /tmp/seafile-office-output/ ]]; then
chown ${SEAFILE_SERVER_USER}:${SEAFILE_SERVER_USER} -R /tmp/seafile-office-output/
fi
# ------------------------------------------- # -------------------------------------------
# Start seafile server # Start seafile server