23.0.2, enable-previews script fixed
This commit is contained in:
parent
658b9d33ce
commit
342ae55c34
|
@ -1,4 +1,4 @@
|
||||||
FROM docker.io/library/nextcloud:23.0.1
|
FROM docker.io/library/nextcloud:23.0.2
|
||||||
|
|
||||||
RUN apt-get update &&\
|
RUN apt-get update &&\
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
NEXTCLOUD_DATA_DIR="/var/www/html"
|
if curl -sL localhost/status.php | grep -qF '"installed":true,'; then
|
||||||
|
NEXTCLOUD_DATA_DIR="/var/www/html"
|
||||||
sed -i '/^);$/d' "$NEXTCLOUD_DATA_DIR"/config/config.php
|
sed -i '/^);$/d' "$NEXTCLOUD_DATA_DIR"/config/config.php
|
||||||
|
cat /previews.conf >> "$NEXTCLOUD_DATA_DIR"/config/config.php
|
||||||
cat previews.conf >> "$NEXTCLOUD_DATA_DIR"/config/config.php
|
echo "Enabled video previews in $NEXTCLOUD_DATA_DIR/config/config.php"
|
||||||
|
else
|
||||||
|
echo "Please finish the initial setup and try again"
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue