Skip to content

Commit e7f8239

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

File tree

2 files changed

+17
-45
lines changed

2 files changed

+17
-45
lines changed

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)