Use $INSTALLDIR when setting working directory
Fix WorkingDirectory for systemd service configuration being hardcoded to /etc/xo/xo-server.
This commit is contained in:
committed by
Tim Sedlmeyer
parent
723fdbdf21
commit
8bd5867fe9
@@ -170,7 +170,7 @@ function InstallXO {
|
|||||||
sed -i "s#ExecStart=.*#ExecStart=$INSTALLDIR\/xo-server\/bin\/xo-server#" $INSTALLDIR/xo-builds/xen-orchestra-$TIME/packages/xo-server/xo-server.service
|
sed -i "s#ExecStart=.*#ExecStart=$INSTALLDIR\/xo-server\/bin\/xo-server#" $INSTALLDIR/xo-builds/xen-orchestra-$TIME/packages/xo-server/xo-server.service
|
||||||
echo
|
echo
|
||||||
echo "Adding WorkingDirectory parameter to systemd service configuration"
|
echo "Adding WorkingDirectory parameter to systemd service configuration"
|
||||||
sed -i "/ExecStart=.*/a WorkingDirectory=/etc/xo/xo-server" $INSTALLDIR/xo-builds/xen-orchestra-$TIME/packages/xo-server/xo-server.service
|
sed -i "/ExecStart=.*/a WorkingDirectory=$INSTALLDIR/xo-server" $INSTALLDIR/xo-builds/xen-orchestra-$TIME/packages/xo-server/xo-server.service
|
||||||
|
|
||||||
if [ $XOUSER ]; then
|
if [ $XOUSER ]; then
|
||||||
echo "Adding user to systemd config"
|
echo "Adding user to systemd config"
|
||||||
|
Reference in New Issue
Block a user