fix the 'no /tmp/seafile-office-output/ file or directory'

This commit is contained in:
Hulk 2019-06-06 11:16:25 +08:00
parent c233b1c3fc
commit a5dbb80f58
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