We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1ed8ad commit e7f8239Copy full SHA for e7f8239
files/common/lib/systemd/system/delphix-legacy-link.service
files/common/lib/systemd/system/delphix-platform.service
@@ -24,6 +24,23 @@ Before=rsync.service docker.service
24
Type=oneshot
25
ExecStart=/var/lib/delphix-platform/ansible/apply
26
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
38
+ if [ -d /export ]; then \
39
+ echo 'Creating symlink: /export/home -> /home'; \
40
+ ln -s /home /export/home; \
41
42
43
+ fi"
44
RemainAfterExit=yes
45
46
#
0 commit comments