0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-04-25 21:00:53 +02:00

split app folder

This commit is contained in:
Tilo Spannagel 2017-04-17 23:02:25 +02:00
parent ae5b15cca3
commit fc384e6a7e
No known key found for this signature in database
GPG key ID: B89F1626A58E1429
23 changed files with 130 additions and 42 deletions

View file

@ -22,17 +22,13 @@ if version_greater "$image_version" "$installed_version"; then
su - www-data -s /bin/bash -c 'php /var/www/html/occ app:list' > /tmp/list_before
fi
rsync -a --delete --exclude /config/ --exclude /data/ --exclude /apps/ /usr/src/nextcloud/ /var/www/html/
rsync -a --delete --exclude /config/ --exclude /data/ --exclude /custom_apps/ /usr/src/nextcloud/ /var/www/html/
if [ ! -d /var/www/html/config ]; then
cp -arT /usr/src/nextcloud/config /var/www/html/config
fi
mkdir -p /var/www/html/apps
for app in `find /usr/src/nextcloud/apps -maxdepth 1 -mindepth 1 -type d | cut -d / -f 6`; do
rm -rf /var/www/html/apps/$app
cp -arT /usr/src/nextcloud/apps/$app /var/www/html/apps/$app
done
mkdir -p /var/www/html/custom_apps
chown -R www-data /var/www/html