mirror of
https://github.com/haiwen/seafile-server-installer-cn
synced 2024-09-20 08:15:28 +00:00
fix the 'no /tmp/seafile-office-output/ file or directory'
This commit is contained in:
parent
c233b1c3fc
commit
a5dbb80f58
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user