mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
add: set default data directory
This commit is contained in:
parent
d0dae7fd8e
commit
92eae2739b
@ -1,6 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
addgroup -g ${GID} nextcloud && adduser -h /nextcloud -s /bin/sh -D -G nextcloud -u ${UID} nextcloud
|
addgroup -g ${GID} nextcloud && adduser -h /nextcloud -s /bin/sh -D -G nextcloud -u ${UID} nextcloud
|
||||||
|
|
||||||
|
# Set default data directory
|
||||||
|
if [ ! -f /config/config.php ]; then
|
||||||
|
echo -e "<?php\n\$CONFIG = array (\n 'datadirectory' => '/data',\n);" > /config/config.php
|
||||||
|
fi
|
||||||
|
|
||||||
touch /var/run/php-fpm.sock
|
touch /var/run/php-fpm.sock
|
||||||
mkdir /tmp/fastcgi /tmp/client_body
|
mkdir /tmp/fastcgi /tmp/client_body
|
||||||
chown -R nextcloud:nextcloud /nextcloud /data /config /apps2 /var/run/php-fpm.sock /var/lib/nginx /tmp
|
chown -R nextcloud:nextcloud /nextcloud /data /config /apps2 /var/run/php-fpm.sock /var/lib/nginx /tmp
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
addgroup -g ${GID} nextcloud && adduser -h /nextcloud -s /bin/sh -D -G nextcloud -u ${UID} nextcloud
|
addgroup -g ${GID} nextcloud && adduser -h /nextcloud -s /bin/sh -D -G nextcloud -u ${UID} nextcloud
|
||||||
|
|
||||||
|
# Set default data directory
|
||||||
|
if [ ! -f /config/config.php ]; then
|
||||||
|
echo -e "<?php\n\$CONFIG = array (\n 'datadirectory' => '/data',\n);" > /config/config.php
|
||||||
|
fi
|
||||||
|
|
||||||
touch /var/run/php-fpm.sock
|
touch /var/run/php-fpm.sock
|
||||||
mkdir /tmp/fastcgi /tmp/client_body
|
mkdir /tmp/fastcgi /tmp/client_body
|
||||||
chown -R nextcloud:nextcloud /nextcloud /data /config /apps2 /var/run/php-fpm.sock /var/lib/nginx /tmp
|
chown -R nextcloud:nextcloud /nextcloud /data /config /apps2 /var/run/php-fpm.sock /var/lib/nginx /tmp
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
addgroup -g ${GID} nextcloud && adduser -h /nextcloud -s /bin/sh -D -G nextcloud -u ${UID} nextcloud
|
addgroup -g ${GID} nextcloud && adduser -h /nextcloud -s /bin/sh -D -G nextcloud -u ${UID} nextcloud
|
||||||
|
|
||||||
|
# Set default data directory
|
||||||
|
if [ ! -f /config/config.php ]; then
|
||||||
|
echo -e "<?php\n\$CONFIG = array (\n 'datadirectory' => '/data',\n);" > /config/config.php
|
||||||
|
fi
|
||||||
|
|
||||||
touch /var/run/php-fpm.sock
|
touch /var/run/php-fpm.sock
|
||||||
mkdir /tmp/fastcgi /tmp/client_body
|
mkdir /tmp/fastcgi /tmp/client_body
|
||||||
chown -R nextcloud:nextcloud /nextcloud /data /config /apps2 /var/run/php-fpm.sock /var/lib/nginx /tmp
|
chown -R nextcloud:nextcloud /nextcloud /data /config /apps2 /var/run/php-fpm.sock /var/lib/nginx /tmp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user