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:
@@ -801,7 +801,7 @@ function InstallXO {
|
|||||||
printinfo "Changing default mountsDir in xo-server configuration file"
|
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 "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 "mkdir -p $INSTALLDIR/mounts"
|
||||||
runcmd "chown -R $XOUSER:$XOUSER $INSTALLDIR/mounts"
|
runcmd "chown $XOUSER:$XOUSER $INSTALLDIR/mounts"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "$SYSLOG_TARGET" ]]; then
|
if [[ -n "$SYSLOG_TARGET" ]]; then
|
||||||
|
Reference in New Issue
Block a user