mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 14:42:01 -03:30
docker: fix datadir path
Signed-off-by: nachoparker <nacho@ownyourbits.com>
This commit is contained in:
parent
afa39fb6e7
commit
84ccf94af7
@ -32,7 +32,7 @@ ln -s /data-ro/nextcloud /var/www/nextcloud; \
|
||||
# stop mysqld
|
||||
mysqladmin -u root shutdown; \
|
||||
|
||||
# package cleanup
|
||||
# package cleanup
|
||||
apt-get autoremove -y; \
|
||||
apt-get clean; \
|
||||
find /var/lib/apt/lists -type f | xargs rm; \
|
||||
@ -44,7 +44,7 @@ rm -f /var/log/alternatives.log /var/log/apt/*; \
|
||||
# specific cleanup
|
||||
apt-get purge -y wget ca-certificates; \
|
||||
rm /nc-nextcloud.sh /usr/local/etc/ncp-config.d/nc-nextcloud.cfg; \
|
||||
rm /.ncp-image;
|
||||
rm /.ncp-image;
|
||||
|
||||
COPY docker/nextcloud/020nextcloud /etc/services-enabled.d/
|
||||
COPY bin/ncp-provisioning.sh /usr/local/bin/
|
||||
|
||||
@ -43,6 +43,7 @@ install_app ncp.sh; \
|
||||
|
||||
mv /usr/local/etc/ncp-config.d/nc-init-copy.cfg /usr/local/etc/ncp-config.d/nc-init.cfg; \
|
||||
run_app_unsafe bin/ncp/CONFIG/nc-init.sh; \
|
||||
sed -i 's|data-ro|data|' /data-ro/nextcloud/config/config.php; \
|
||||
|
||||
# fix default paths
|
||||
sed -i 's|/media/USBdrive|/data/backups|' /usr/local/etc/ncp-config.d/nc-backup.cfg; \
|
||||
|
||||
@ -1,27 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="ng-csp" data-placeholder-focus="false" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta charset="utf-8">
|
||||
<title> NextCloudPi Initialization </title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="referrer" content="never">
|
||||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
|
||||
<?php session_start(); ?>
|
||||
</head>
|
||||
<body id="body-login">
|
||||
<div class="wrapper">
|
||||
<div class="v-align">
|
||||
<header role="banner">
|
||||
<div id="header">
|
||||
<p style="font-size:130%">Initializing NextCloudPi for the first time</p>
|
||||
<p style="font-size:130%">Please wait...</p>
|
||||
</div>
|
||||
</header>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
setTimeout( function(){ window.location.reload( true ); }, 5000 );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -20,6 +20,8 @@ rm "${crontab_tmp}"
|
||||
|
||||
# docker images only
|
||||
[[ -f /.docker-image ]] && {
|
||||
# fix build bug on v1.32.0
|
||||
sed -i 's|data-ro|data|' /data/nextcloud/config/config.php
|
||||
:
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user