1
0
Fork 0
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:
Jérôme Lebleu 2016-04-04 10:56:09 +02:00
parent 5cbd01ab57
commit 8ecface268
2 changed files with 1 additions and 3 deletions

View file

@ -39,8 +39,7 @@ extract_owncloud() {
# retrieve and extract Roundcube tarball # retrieve and extract Roundcube tarball
oc_tarball="/tmp/owncloud.tar.bz2" oc_tarball="/tmp/owncloud.tar.bz2"
rm -f "$oc_tarball" rm -f "$oc_tarball"
# wget -q -O "$oc_tarball" "$OWNCLOUD_SOURCE_URL" \ wget -q -O "$oc_tarball" "$OWNCLOUD_SOURCE_URL" \
cp /home/admin/owncloud.tar.bz2 "$oc_tarball" \
|| die "Unable to download ownCloud tarball" || die "Unable to download ownCloud tarball"
echo "$OWNCLOUD_SOUCE_SHA256 $oc_tarball" | sha256sum -c >/dev/null \ echo "$OWNCLOUD_SOUCE_SHA256 $oc_tarball" | sha256sum -c >/dev/null \
|| die "Invalid checksum of downloaded tarball" || die "Invalid checksum of downloaded tarball"

View file

@ -100,7 +100,6 @@ _exec_occ upgrade \
# Enable plugins and set ownCloud configuration # Enable plugins and set ownCloud configuration
_exec_occ app:enable files_external _exec_occ app:enable files_external
_exec_occ app:enable user_ldap _exec_occ app:enable user_ldap
_exec_occ ldap:create-empty-config
_exec_occ config:import "$oc_conf" _exec_occ config:import "$oc_conf"
sudo rm -f "$oc_conf" sudo rm -f "$oc_conf"