File tree Expand file tree Collapse file tree 2 files changed +17
-45
lines changed
files/common/lib/systemd/system Expand file tree Collapse file tree 2 files changed +17
-45
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -24,6 +24,23 @@ Before=rsync.service docker.service
2424Type =oneshot
2525ExecStart =/var/lib/delphix-platform/ansible/apply
2626ExecStart =/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"
2744RemainAfterExit =yes
2845
2946#
You can’t perform that action at this time.
0 commit comments