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
path: root/etc
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 /etc
parent05c14ce868dd2d5f5020462c09dfbf393990142d (diff)
NFS: fix dependency with automountv0.56.18
Diffstat (limited to 'etc')
-rw-r--r--etc/ncp-config.d/NFS.sh35
1 files changed, 2 insertions, 33 deletions
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()