add fix for service not running as root

This commit is contained in:
Ubuntu
2020-05-09 15:54:22 +00:00
parent 503493c140
commit 631124d683

View File

@@ -488,6 +488,8 @@ function InstallXO {
echo -e "${INFO} Activating modified configuration file" echo -e "${INFO} Activating modified configuration file"
mkdir -p $CONFIGPATH/.config/xo-server mkdir -p $CONFIGPATH/.config/xo-server
mv -f $INSTALLDIR/xo-builds/xen-orchestra-$TIME/packages/xo-server/sample.config.toml $CONFIGPATH/.config/xo-server/config.toml mv -f $INSTALLDIR/xo-builds/xen-orchestra-$TIME/packages/xo-server/sample.config.toml $CONFIGPATH/.config/xo-server/config.toml
#fix permissions if service is not running as root
chown -R $XOUSER:$XOUSER $CONFIGPATH
fi fi