Skip to content

Commit e003914

Browse files
committed
Adding the mount point logic back to delphix-platform.sh script
1 parent a1ed8ad commit e003914

File tree

3 files changed

+18
-47
lines changed

3 files changed

+18
-47
lines changed

debian/postinst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -eux
22
#
3-
# Copyright 2018, 2025 Delphix
3+
# Copyright 2018, 2021 Delphix
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -66,7 +66,6 @@ configure)
6666
systemctl unmask delphix.target
6767

6868
systemctl enable delphix-platform.service
69-
systemctl enable delphix-legacy-link.service
7069
systemctl enable delphix-rpool-upgrade.service
7170
systemctl enable delphix.target
7271

files/common/lib/systemd/system/delphix-legacy-link.service

Lines changed: 0 additions & 45 deletions
This file was deleted.

files/common/lib/systemd/system/delphix-platform.service

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,23 @@ Before=rsync.service docker.service
2424
Type=oneshot
2525
ExecStart=/var/lib/delphix-platform/ansible/apply
2626
ExecStart=/var/lib/delphix-platform/dynamic-debug
27+
ExecStart=/bin/bash -c " \
28+
if ! mountpoint -q /export/home; then \
29+
if [ ! -L /export/home ]; then \
30+
echo 'Ensuring /export/home is a symlink to /home...'; \
31+
if [ -e /export/home ]; then \
32+
echo 'Removing existing /export/home directory...'; \
33+
rm -rf /export/home; \
34+
fi; \
35+
if [ ! -d /export ]; then \
36+
mkdir /export; \
37+
fi; \
38+
if [ -d /export ]; then \
39+
echo 'Creating symlink: /export/home -> /home'; \
40+
ln -s /home /export/home; \
41+
fi; \
42+
fi; \
43+
fi"
2744
RemainAfterExit=yes
2845

2946
#

0 commit comments

Comments
 (0)