Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-06-06 18:00:19 +0300
committernachoparker <nacho@ownyourbits.com>2018-06-06 18:00:23 +0300
commit412eee2f980e7ada84208df5de68f203e68eb4f9 (patch)
tree832e5427e36ac6b5da048921e7a35fd906032d99
parent05c14ce868dd2d5f5020462c09dfbf393990142d (diff)
NFS: fix dependency with automountv0.56.18
-rw-r--r--changelog.md8
-rw-r--r--etc/ncp-config.d/NFS.sh35
-rwxr-xr-xupdate.sh4
3 files changed, 13 insertions, 34 deletions
diff --git a/changelog.md b/changelog.md
index 00076942..341ebdb6 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,11 @@
-[v0.56.15](https://github.com/nextcloud/nextcloudpi/commit/7439045) (2018-05-28) ncp-web: added chinese translations
+[v0.56.18](https://github.com/nextcloud/nextcloudpi/commit/caaa4cd) (2018-06-06) NFS: fix dependency with automount
+
+[v0.56.17](https://github.com/nextcloud/nextcloudpi/commit/b4038ca) (2018-06-04) ncp-web: sanitize the ref parameter
+
+[v0.56.16](https://github.com/nextcloud/nextcloudpi/commit/6eaa853) (2018-05-29) build: fix cleanup armbian images
+
+[v0.56.15](https://github.com/nextcloud/nextcloudpi/commit/6600972) (2018-05-28) ncp-web: added chinese translations
[v0.56.14](https://github.com/nextcloud/nextcloudpi/commit/c47fb2d) (2018-05-27) re-rename to NCPi
diff --git a/etc/ncp-config.d/NFS.sh b/etc/ncp-config.d/NFS.sh
index 9fd6e715..db9d4336 100644
--- a/etc/ncp-config.d/NFS.sh
+++ b/etc/ncp-config.d/NFS.sh
@@ -28,39 +28,8 @@ install()
systemctl disable nfs-kernel-server
systemctl mask nfs-blkmap
- cat > /etc/systemd/system/nfs-common.services <<EOF
-[Unit]
-Description=NFS Common daemons
-Wants=remote-fs-pre.target
-DefaultDependencies=no
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-ExecStart=/etc/init.d/nfs-common start
-ExecStop=/etc/init.d/nfs-common stop
-
-[Install]
-WantedBy=sysinit.target
-EOF
-
- cat > /etc/systemd/system/rpcbind.service <<EOF
-[Unit]
-Description=RPC bind portmap service
-After=systemd-tmpfiles-setup.service
-Wants=remote-fs-pre.target
-Before=remote-fs-pre.target
-DefaultDependencies=no
-
-[Service]
-ExecStart=/sbin/rpcbind -f -w
-KillMode=process
-Restart=on-failure
-
-[Install]
-WantedBy=sysinit.target
-Alias=portmap
-EOF
+ # delay init because of automount
+ sed -i 's|^ExecStartPre=.*|ExecStartPre=/bin/bash -c "/bin/sleep 30; /usr/sbin/exportfs -r"|' /lib/systemd/system/nfs-server.service
}
configure()
diff --git a/update.sh b/update.sh
index 1e1d906d..d416584a 100755
--- a/update.sh
+++ b/update.sh
@@ -238,6 +238,10 @@ done
systemctl enable nc-provisioning
}
+ # fix NFS dependency with automount
+ rm -f /etc/systemd/system/rpcbind.service /etc/systemd/system/nfs-common.services
+ sed -i 's|^ExecStartPre=.*|ExecStartPre=/bin/bash -c "/bin/sleep 30; /usr/sbin/exportfs -r"|' /lib/systemd/system/nfs-server.service
+
} # end - only live updates
exit 0