mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
also update daily files
This commit is contained in:
parent
74c0f237fc
commit
9856bd85d3
@ -11,11 +11,9 @@ ENV UID=991 GID=991 \
|
|||||||
CRON_MEMORY_LIMIT=1g \
|
CRON_MEMORY_LIMIT=1g \
|
||||||
TZ=Etc/UTC \
|
TZ=Etc/UTC \
|
||||||
DB_TYPE=sqlite3 \
|
DB_TYPE=sqlite3 \
|
||||||
ADMIN_USER=admin \
|
DOMAIN=localhost
|
||||||
ADMIN_PASSWORD=admin
|
|
||||||
|
|
||||||
RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
||||||
&& echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
|
||||||
&& BUILD_DEPS=" \
|
&& BUILD_DEPS=" \
|
||||||
gnupg \
|
gnupg \
|
||||||
tar \
|
tar \
|
||||||
|
@ -67,7 +67,7 @@ echo "Starting automatic configuration..."
|
|||||||
# Execute ownCloud's setup step, which creates the ownCloud database.
|
# Execute ownCloud's setup step, which creates the ownCloud database.
|
||||||
# It also wipes it if it exists. And it updates config.php with database
|
# It also wipes it if it exists. And it updates config.php with database
|
||||||
# settings and deletes the autoconfig.php file.
|
# settings and deletes the autoconfig.php file.
|
||||||
(cd /nextcloud; php7.1 index.php)
|
(cd /nextcloud; php7.1 index.php &>/dev/null)
|
||||||
echo "Automatic configuration finished."
|
echo "Automatic configuration finished."
|
||||||
|
|
||||||
# Update config.php.
|
# Update config.php.
|
||||||
@ -97,9 +97,12 @@ echo ";";
|
|||||||
?>
|
?>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
sed -i "s/localhost/$DOMAIN/g" /config/config.php
|
||||||
chown -R $UID:$GID /config /data
|
chown -R $UID:$GID /config /data
|
||||||
# Enable/disable apps. Note that this must be done after the ownCloud setup.
|
# Enable/disable apps. Note that this must be done after the ownCloud setup.
|
||||||
# The firstrunwizard gave Josh all sorts of problems, so disabling that.
|
# The firstrunwizard gave Josh all sorts of problems, so disabling that.
|
||||||
# user_external is what allows ownCloud to use IMAP for login. The contacts
|
# user_external is what allows ownCloud to use IMAP for login. The contacts
|
||||||
# and calendar apps are the extensions we really care about here.
|
# and calendar apps are the extensions we really care about here.
|
||||||
occ app:disable firstrunwizard
|
if [[ ! -z "$ADMIN_USER" ]]; then
|
||||||
|
occ app:disable firstrunwizard
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user