File tree 1 file changed +17
-15
lines changed
files/common/lib/systemd/system
1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -22,21 +22,23 @@ Requires=delphix-platform.service
22
22
[Service]
23
23
Type =oneshot
24
24
ExecStart =/bin/sh -c '\
25
- echo "Ensuring /export/home is a symlink to /home..."; \
26
- if mountpoint -q /export/home; then \
27
- echo "/export/home is a mountpoint, unmounting..."; \
28
- umount /export/home || { echo "Failed to unmount /export/home"; exit 1; }; \
29
- fi; \
30
- if [ -e /export/home ] && [ ! -L /export/home ]; then \
31
- echo "Removing existing /export/home directory..."; \
32
- rm -rf /export/home; \
33
- fi; \
34
- if [ ! -d /export ]; then \
35
- mkdir /export; \
36
- fi; \
37
- if [ -d /export ] && [ ! -L /export/home ]; then \
38
- echo "Creating symlink: /export/home -> /home"; \
39
- ln -s /home /export/home; \
25
+ if [ ! -L /export/home ]; then \
26
+ echo "Ensuring /export/home is a symlink to /home..."; \
27
+ if mountpoint -q /export/home; then \
28
+ echo "/export/home is a mountpoint, unmounting..."; \
29
+ umount /export/home || { echo "Failed to unmount /export/home"; exit 1; }; \
30
+ fi; \
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;
40
42
fi;'
41
43
42
44
[Install]
You can’t perform that action at this time.
0 commit comments