del: check for distributed config.php

This commit is contained in:
kvaps 2016-08-16 19:23:31 +03:00
parent 391b54ca39
commit d0dae7fd8e
3 changed files with 3 additions and 15 deletions

View File

@ -1,14 +1,10 @@
#!/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
if [ -f /nextcloud/config/config.php ] && [ ! -f /config/config.php ]; then
mv /nextcloud/config/config.php /config/config.php
fi
ln -s /config/config.php /nextcloud/config/config.php
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
ln -s /config/config.php /nextcloud/config/config.php
ln -s /apps2 /nextcloud ln -s /apps2 /nextcloud
supervisord -c /etc/supervisor/supervisord.conf supervisord -c /etc/supervisor/supervisord.conf

View File

@ -1,14 +1,10 @@
#!/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
if [ -f /nextcloud/config/config.php ] && [ ! -f /config/config.php ]; then
mv /nextcloud/config/config.php /config/config.php
fi
ln -s /config/config.php /nextcloud/config/config.php
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
ln -s /config/config.php /nextcloud/config/config.php
ln -s /apps2 /nextcloud ln -s /apps2 /nextcloud
supervisord -c /etc/supervisor/supervisord.conf supervisord -c /etc/supervisor/supervisord.conf

View File

@ -1,14 +1,10 @@
#!/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
if [ -f /nextcloud/config/config.php ] && [ ! -f /config/config.php ]; then
mv /nextcloud/config/config.php /config/config.php
fi
ln -s /config/config.php /nextcloud/config/config.php
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
ln -s /config/config.php /nextcloud/config/config.php
ln -s /apps2 /nextcloud ln -s /apps2 /nextcloud
supervisord -c /etc/supervisor/supervisord.conf supervisord -c /etc/supervisor/supervisord.conf