File tree 3 files changed +18
-47
lines changed
files/common/lib/systemd/system 3 files changed +18
-47
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash -eux
2
2
#
3
- # Copyright 2018, 2025 Delphix
3
+ # Copyright 2018, 2021 Delphix
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# you may not use this file except in compliance with the License.
@@ -66,7 +66,6 @@ configure)
66
66
systemctl unmask delphix.target
67
67
68
68
systemctl enable delphix-platform.service
69
- systemctl enable delphix-legacy-link.service
70
69
systemctl enable delphix-rpool-upgrade.service
71
70
systemctl enable delphix.target
72
71
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
24
24
Type =oneshot
25
25
ExecStart =/var/lib/delphix-platform/ansible/apply
26
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
+ 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"
27
44
RemainAfterExit =yes
28
45
29
46
#
You can’t perform that action at this time.
0 commit comments