Ensure config/apps.config.php get copied#118
Conversation
PR nextcloud#115 breaks the logic that config/apps.config.php get copied after custom_apps: nextcloud#115 (comment). This patch is going to copy that file if it doesn't exist.
|
Thanks for the quick fix! |
|
@vfreex @SnowMB this cp is there to upgrade existing setups which were created before #65. |
|
@tilosp |
|
@vfreex for dir in config data themes; do
if [ ! -d /var/www/html/"$dir" ] || directory_empty /var/www/html/"$dir"; then
cp -arT /usr/src/nextcloud/"$dir" /var/www/html/"$dir"
fi
done
if [ ! -d /var/www/html/custom_apps ]; then
cp -a /usr/src/nextcloud/config/apps.config.php /var/www/html/config/apps.config.php
fi
if [ ! -d /var/www/html/custom_apps ] || directory_empty /var/www/html/custom_apps; then
cp -arT /usr/src/nextcloud/custom_apps /var/www/html/custom_apps
fi |
|
@tilosp |
|
Sorry, my mistake. This situation only happens when upgrading from an old version because in newer version the whole |
|
I implemented this in #119 |
PR #115 breaks the logic that config/apps.config.php get copied
after custom_apps: #115 (comment).
This patch is going to copy that file if it doesn't exist.