Skip to content

Commit 4e091fb

Browse files
committed
Fixing the message with proper handling suggestion in case of symlink creation failure.
1 parent 64fe711 commit 4e091fb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

files/common/var/lib/delphix-platform/export-home

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@ mkdir -p /export
6060

6161
# Create symlink
6262
echo "Creating symlink: /export/home -> /home"
63-
ln -s /home /export/home
64-
if [ $? -eq 0 ]; then
63+
if ln -s /home /export/home; then
6564
echo "Symlink created successfully."
6665
else
67-
echo "Failed to create symlink. Please check permissions and try again."
66+
echo "Failed to create symlink /export/home -> /home. Check that /export exists, is writable, and no stale /export/home entry remains. Re-run this script after resolving."
6867
exit 1
6968
fi

0 commit comments

Comments
 (0)