parent
a20142ff64
commit
c59ce48a72
|
@ -39,7 +39,7 @@ echo "$yarn_repo" | tee /etc/apt/sources.list.d/yarn.list
|
||||||
/bin/chmod +x $n_location
|
/bin/chmod +x $n_location
|
||||||
/usr/local/bin/n lts
|
/usr/local/bin/n lts
|
||||||
|
|
||||||
#Symbolic Link
|
# Symlink node directories
|
||||||
ln -s /usr/bin/node /usr/local/bin/node
|
ln -s /usr/bin/node /usr/local/bin/node
|
||||||
|
|
||||||
# Install XO dependencies
|
# Install XO dependencies
|
||||||
|
@ -61,7 +61,7 @@ sed -i "s|#'/': '/path/to/xo-web/dist/'|'/': '/opt/xen-orchestra/packages/xo-web
|
||||||
#Create node_modules directory if doesn't exist
|
#Create node_modules directory if doesn't exist
|
||||||
mkdir -p /usr/local/lib/node_modules/
|
mkdir -p /usr/local/lib/node_modules/
|
||||||
|
|
||||||
# symlink all plugins
|
# Symlink all plugins
|
||||||
for source in =$(ls -d /opt/xen-orchestra/packages/xo-server-*); do
|
for source in =$(ls -d /opt/xen-orchestra/packages/xo-server-*); do
|
||||||
ln -s "$source" /usr/local/lib/node_modules/
|
ln -s "$source" /usr/local/lib/node_modules/
|
||||||
done
|
done
|
||||||
|
@ -69,7 +69,7 @@ done
|
||||||
if [[ ! -e $systemd_service_dir/$xo_service ]] ; then
|
if [[ ! -e $systemd_service_dir/$xo_service ]] ; then
|
||||||
|
|
||||||
/bin/cat << EOF >> $systemd_service_dir/$xo_service
|
/bin/cat << EOF >> $systemd_service_dir/$xo_service
|
||||||
# systemd service for XO-Server.
|
# Systemd service for XO-Server.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description= XO Server
|
Description= XO Server
|
||||||
|
|
Loading…
Reference in New Issue