mirror of
https://github.com/YunoHost-Apps/owncloud_ynh.git
synced 2024-09-03 19:56:25 +02:00
[fix] Do not create empty ldap config at upgrade and fix download
This commit is contained in:
parent
5cbd01ab57
commit
8ecface268
2 changed files with 1 additions and 3 deletions
|
@ -39,8 +39,7 @@ extract_owncloud() {
|
|||
# retrieve and extract Roundcube tarball
|
||||
oc_tarball="/tmp/owncloud.tar.bz2"
|
||||
rm -f "$oc_tarball"
|
||||
# wget -q -O "$oc_tarball" "$OWNCLOUD_SOURCE_URL" \
|
||||
cp /home/admin/owncloud.tar.bz2 "$oc_tarball" \
|
||||
wget -q -O "$oc_tarball" "$OWNCLOUD_SOURCE_URL" \
|
||||
|| die "Unable to download ownCloud tarball"
|
||||
echo "$OWNCLOUD_SOUCE_SHA256 $oc_tarball" | sha256sum -c >/dev/null \
|
||||
|| die "Invalid checksum of downloaded tarball"
|
||||
|
|
|
@ -100,7 +100,6 @@ _exec_occ upgrade \
|
|||
# Enable plugins and set ownCloud configuration
|
||||
_exec_occ app:enable files_external
|
||||
_exec_occ app:enable user_ldap
|
||||
_exec_occ ldap:create-empty-config
|
||||
_exec_occ config:import "$oc_conf"
|
||||
sudo rm -f "$oc_conf"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue