File tree Expand file tree Collapse file tree 3 files changed +18
-47
lines changed
files/common/lib/systemd/system Expand file tree Collapse file tree 3 files changed +18
-47
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash -eux
22#
3- # Copyright 2018, 2025 Delphix
3+ # Copyright 2018, 2021 Delphix
44#
55# Licensed under the Apache License, Version 2.0 (the "License");
66# you may not use this file except in compliance with the License.
@@ -66,7 +66,6 @@ configure)
6666 systemctl unmask delphix.target
6767
6868 systemctl enable delphix-platform.service
69- systemctl enable delphix-legacy-link.service
7069 systemctl enable delphix-rpool-upgrade.service
7170 systemctl enable delphix.target
7271
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