mirror of
https://github.com/haiwen/seafile-server-installer-cn
synced 2024-09-20 08:15:28 +00:00
Merge pull request #63 from haiwen/fix-no-directory
fix the 'no /tmp/seafile-office-output/ file or directory'
This commit is contained in:
commit
a5bf55d221
|
@ -338,6 +338,7 @@ ExecStart=${SEAFILE_SERVER_HOME}/seafile-server-latest/seafile.sh start
|
|||
ExecStop=${SEAFILE_SERVER_HOME}/seafile-server-latest/seafile.sh stop
|
||||
User=${SEAFILE_SERVER_USER}
|
||||
Group=${SEAFILE_SERVER_USER}
|
||||
LimitNOFILE=infinity
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
|
||||
|
@ -523,7 +524,10 @@ fi
|
|||
# Fix permissions
|
||||
# -------------------------------------------
|
||||
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
|
||||
|
|
|
@ -434,7 +434,9 @@ fi
|
|||
# Fix permissions
|
||||
# -------------------------------------------
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user