From 1fd275b784acb42e87557cc42e62e78071b62ab1 Mon Sep 17 00:00:00 2001 From: ronivay Date: Mon, 30 Oct 2023 11:27:39 +0200 Subject: [PATCH] fix: do not run chown recursively to mounts dir with non-root user --- xo-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xo-install.sh b/xo-install.sh index 52fe44b..42c640c 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -801,7 +801,7 @@ function InstallXO { printinfo "Changing default mountsDir in xo-server configuration file" runcmd "sed -i \"s%#mountsDir.*%mountsDir = '$INSTALLDIR/mounts'%\" $INSTALLDIR/xo-builds/xen-orchestra-$TIME/packages/xo-server/sample.config.toml" runcmd "mkdir -p $INSTALLDIR/mounts" - runcmd "chown -R $XOUSER:$XOUSER $INSTALLDIR/mounts" + runcmd "chown $XOUSER:$XOUSER $INSTALLDIR/mounts" fi if [[ -n "$SYSLOG_TARGET" ]]; then