mirror of
https://github.com/haiwen/seafile-server-installer-cn.git
synced 2025-12-26 01:14:55 +00:00
Merge pull request #2 from haiwen/check-exist
check exist when download package
This commit is contained in:
commit
05d87a236f
|
|
@ -265,7 +265,12 @@ update-rc.d seafile-server defaults
|
|||
adduser --system --gecos "${SEAFILE_USER}" ${SEAFILE_USER} --home /opt/seafile
|
||||
mkdir -p /opt/seafile/installed
|
||||
cd /opt/seafile/
|
||||
curl -OL ${SEAFILE_SERVER_PACKAGE_URL}
|
||||
if [ ! -e /opt/${SEAFILE_SERVER_PACKAGE} ];
|
||||
then
|
||||
curl -OL ${SEAFILE_SERVER_PACKAGE_URL}
|
||||
else
|
||||
cp /opt/${SEAFILE_SERVER_PACKAGE} .
|
||||
fi
|
||||
tar xzf ${SEAFILE_SERVER_PACKAGE}
|
||||
|
||||
mv ${SEAFILE_SERVER_PACKAGE} installed
|
||||
|
|
|
|||
Loading…
Reference in New Issue