Redirect output

Doesn't need to be in container log

Signed-off-by: Eric Nemchik <eric@nemchik.com>
This commit is contained in:
Eric Nemchik 2023-06-06 23:44:28 -05:00
parent 57c6197dbe
commit beac2d82ef
No known key found for this signature in database

View File

@ -96,8 +96,8 @@ if vergt "${image_version}" "${installed_version}"; then
echo "Initializing finished"
fi
echo "Setting permissions"
if [ -f /tmp/full_chown ]; then
echo "Setting permissions"
lsiown abc:abc -R \
/app/www/public
rm -f /tmp/full_chown
@ -107,16 +107,16 @@ lsiown abc:abc \
/data
# setup config
if ! occ config:system:get memcache.local; then
if ! occ config:system:get memcache.local >/dev/null 2>&1; then
occ config:system:set memcache.local --value='\\OC\\Memcache\\APCu'
fi
if ! occ config:system:get memcache.distributed; then
if ! occ config:system:get memcache.distributed >/dev/null 2>&1; then
occ config:system:set memcache.distributed --value='\\OC\\Memcache\\Memcached'
fi
if ! occ config:system:get datadirectory; then
if ! occ config:system:get datadirectory >/dev/null 2>&1; then
occ config:system:set datadirectory --value='/data'
fi
if ! occ config:system:get apps_paths || ! occ config:system:get apps_paths | grep -q 'path: /app/www/public/apps' || ! occ config:system:get apps_paths | grep -q 'path: /app/www/public/custom_apps'; then
if ! occ config:system:get apps_paths >/dev/null 2>&1 || ! occ config:system:get apps_paths | grep -q 'path: /app/www/public/apps' || ! occ config:system:get apps_paths | grep -q 'path: /app/www/public/custom_apps'; then
occ config:import < <(echo '{"system":{"apps_paths":[{"path":"\/app\/www\/public\/apps","url":"\/apps","writable":false},{"path":"\/app\/www\/public\/custom_apps","url":"\/custom_apps","writable":true}]}}')
fi