Skip to content
This repository has been archived by the owner on Jan 27, 2020. It is now read-only.

Commit

Permalink
fix: update owncloud install permissions recursively
Browse files Browse the repository at this point in the history
  • Loading branch information
jirislav committed Oct 6, 2017
1 parent f2b1796 commit acf9033
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions setup/owncloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,19 +215,23 @@ InstallNextcloud() {
rm /tmp/spreed.tgz
mv /usr/local/lib/owncloud/apps/spreed-${SPREED_VERSION} /usr/local/lib/owncloud/apps/spreed

#
# Install nextant to the nextcloud
# but first solr installation is needed ..
InstallSolr

local NEXTANT_VERSION=1.0.8
wget_verify https://github.com/nextcloud/nextant/releases/download/v${NEXTANT_VERSION}/nextant-${NEXTANT_VERSION}.tar.gz ebfbcb028583608e3fa7b9697facc626253dd002 /tmp/nextant.tgz
tar xf /tmp/nextant.tgz -C /usr/local/lib/owncloud/apps/
rm /tmp/nextant.tgz
INSTALL_NEXTANT="yes"

if test $INSTALL_NEXTANT = "yes"; then
#
# Install nextant to the nextcloud
# but first solr installation is needed ..
InstallSolr

local NEXTANT_VERSION=1.0.8
wget_verify https://github.com/nextcloud/nextant/releases/download/v${NEXTANT_VERSION}/nextant-${NEXTANT_VERSION}.tar.gz ebfbcb028583608e3fa7b9697facc626253dd002 /tmp/nextant.tgz
tar xf /tmp/nextant.tgz -C /usr/local/lib/owncloud/apps/
rm /tmp/nextant.tgz
fi


# Fix weird permissions.
chmod 750 /usr/local/lib/owncloud/{apps,config}
chmod 750 -R /usr/local/lib/owncloud/{apps,config}

# Create a symlink to the config.php in STORAGE_ROOT (for upgrades we're restoring the symlink we previously
# put in, and in new installs we're creating a symlink and will create the actual config later).
Expand Down

0 comments on commit acf9033

Please sign in to comment.