Skip to content

Commit

Permalink
Optimise initial ownCloud setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mreid-tt committed Sep 19, 2024
1 parent 347e399 commit ff37ffd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spk/owncloud/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SPK_DEPENDS = WebStation:PHP7.4:Apache2.4
MAINTAINER = SynoCommunity
DESCRIPTION = ownCloud is a personal cloud which runs on your own server and gives you freedom and control over your own data.
DISPLAY_NAME = ownCloud
CHANGELOG = "1. Update ownCloud to 10.15.0.<br/>2. Various script fixes and refinements."
CHANGELOG = "1. Update ownCloud to 10.15.0.<br/>2. Various script fixes and refinements.<br/>3. Optimise initial ownCloud setup."
HOMEPAGE = https://owncloud.com/

LICENSE = AGPLv3
Expand Down
6 changes: 6 additions & 0 deletions spk/owncloud/src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ setup_owncloud_instance()
echo "</IfModule>"
} >> "${APACHE_CONF}"
fi

# Configure background jobs using cron
exec_occ system:cron

# Configure memory caching
exec_occ config:system:set memcache.local --value="\OC\Memcache\APCu"
fi
}

Expand Down
8 changes: 7 additions & 1 deletion spk/owncloud/src/web/owncloud.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@
"start_servers": 2
},
"open_basedir": "",
"php_settings": {},
"php-ini": [{
"relpath": "/var/packages/owncloud/target/web/owncloud.ini"
}],
"php_settings": {
"error_log": "/var/services/web/owncloud/php_errors.log",
"max_execution_time": "900"
},
"profile_desc": "PHP Profile for ownCloud",
"profile_name": "ownCloud Profile"
}

0 comments on commit ff37ffd

Please sign in to comment.