Merge pull request #197 from ronivay/fix/nfs-remote-permissions

fix: do not run chown recursively to mounts dir with non-root user
This commit is contained in:
Roni Väyrynen
2023-10-30 14:22:21 +02:00
committed by GitHub

View File

@@ -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