283 Commits

Author SHA1 Message Date
ronivay
b5399a482e define script base dir as variable and couple minor fixes 2021-08-23 15:44:57 +03:00
ronivay
36903f8f8c add Debian 11 support 2021-08-23 13:40:12 +03:00
ronivay
2d7d197878 fix git checkout from wrong working directory when other than master branch used 2021-08-18 10:08:01 +03:00
ronivay
23a623a4f7 rename all appliance portions to make it clear this has nothing to do with official XOA 2021-08-03 10:48:14 +03:00
ronivay
555dd6317d make local variables consistent in all functions 2021-07-23 17:47:18 +03:00
ronivay
aaeba15f09 change the way plugins are read from variables and add format check to 3rd party plugins 2021-07-23 16:55:41 +03:00
ronivay
06138a92e9 add missing command logging to 3rd party plugin section 2021-07-23 14:17:09 +03:00
ronivay
48f656aaf6 use different delimiter with sed when setting xo-web path to config to get rid of hacky variable 2021-07-23 14:14:03 +03:00
ronivay
c81836f936 fix logging for some commands and minor tidying 2021-07-23 12:55:04 +03:00
ronivay
5c7962e63b check available disk/memory every time and prompt or just print warning depending on how script was started 2021-07-22 22:08:28 +03:00
ronivay
81fafbd03c add mention about forced update in non interactive output 2021-07-22 21:41:12 +03:00
a-mugica
6a941311b2 Update to xo-install.sh to allow use of ECC/ECDSA certificates
the CheckCertificate function fails when using ECC certificates
this change updates the openssl commands that compare certificate and key to ones that are algorithm-generic so that both RSA and ECC (and others?) can be compared and used.
based on answers here: https://security.stackexchange.com/questions/73127/how-can-you-check-if-a-private-key-and-certificate-match-in-openssl-with-ecdsa
and the other linked question: https://security.stackexchange.com/questions/56697/determine-if-private-key-belongs-to-certificate
2021-07-22 03:31:55 -07:00
ronivay
45830168e0 update apt cache before doing nodejs/yarn minor update 2021-07-21 17:40:48 +03:00
ronivay
fc009e0ffb add some comments to xo-install.sh 2021-07-19 14:06:19 +03:00
ronivay
c383d0192a make sure add-apt-repository command is available for ubuntu installations 2021-07-19 12:30:43 +03:00
ronivay
48e24b021f check existense of xe binary before checking OS 2021-07-06 00:23:12 +03:00
ronivay
ef16d2813e remove leftover commented line 2021-07-05 15:20:14 +03:00
ronivay
de2eca7445 ignore SC2094 in runcmd_stdout 2021-07-05 12:20:06 +03:00
ronivay
df13fe8025 increase logging verbosity and error handling 2021-07-05 12:15:12 +03:00
ronivay
3385195df6 update sample configuration comments and add default values for https cert/key 2021-07-04 18:05:10 +03:00
ronivay
b0b76b6f05 execute and log commands in single function instead of separate lines 2021-07-04 17:09:20 +03:00
ronivay
232feb6b92 update readme and adjust rollback menu option 2021-07-03 12:38:21 +03:00
ronivay
927f9f2f3e change menu option descriptions 2021-07-02 21:23:12 +03:00
ronivay
956d029d45 remove obsolete xe command check under os check 2021-07-01 14:48:05 +03:00
ronivay
eccb9ad776 remove obsolete yarn tasks from plugin installation 2021-07-01 14:18:19 +03:00
ronivay
58d2a853d5 adjust additional plugin install output 2021-07-01 13:53:17 +03:00
ronivay
25e85f5fbc fix shellcheck issues in scripts 2021-07-01 13:42:29 +03:00
Roni Väyrynen
f249aec91a Merge pull request #86 from ixs/add_plugins
Add ability to install 3rd party plugins
2021-06-30 16:04:01 +03:00
ronivay
9ffb104710 set default value for ADDITIONAL_PLUGINS variable in xo-install.sh 2021-06-30 15:55:31 +03:00
Andreas Thienemann
c7a90a2de0 Add ability to install 3rd party plugins
Depending on the situation, a user might have third party plugins that
are needed for their XO setup. We're using a mysql auth plugin, but
github has a handful of other third party plugins.

Added: config setting ADDITIONAL_PLUGINS to specify git repo URLs.
Added: InstallAdditionalXOPlugins function to download/update these
       repos and add them to the XO source tree before building.
2021-06-28 22:28:41 +02:00
Andreas Thienemann
73c9a0c348 Add Rocky Linux 8 support 2021-06-28 15:39:39 +02:00
ronivay
8192fbc538 Log script version and used config file content 2021-06-15 10:41:24 +03:00
ronivay
b3bdd02e1b improve logging of xen orchestra sources branch and commit 2021-06-15 10:04:50 +03:00
maxcerny
36872787fd Update xo-install.sh
Fix freezing on checking for universe.
2021-06-04 11:21:23 +02:00
ronivay
d04957b972 Fix systemd service executable path 2021-05-20 20:08:13 +03:00
ronivay
a8f45260f4 fixes #76 2021-05-04 18:44:06 +03:00
ronivay
6eff84ff5d move osname/osversion checks to beginning of checkos function 2021-05-03 17:38:14 +03:00
ronivay
f71634e960 fail if yum/apt-get is missing even if os check is disabled 2021-05-03 17:32:43 +03:00
ronivay
004527ab3a Add support for AlmaLinux 2021-05-03 17:15:27 +03:00
ronivay
d13badd39e remove obsolete version check as centos7 isn't supported anymore 2021-05-03 16:42:15 +03:00
ronivay
a97404ad9c fix indentation in plugins installation 2021-05-03 16:41:14 +03:00
ronivay
373aec180b remove https error message 2021-05-03 15:27:23 +03:00
ronivay
bb7c523ddf fix centos version check and log pkg manager checks 2021-05-03 15:26:20 +03:00
ronivay
3cff98848d move xenserver/xcp-ng host check inside it's own function 2021-05-03 15:09:58 +03:00
ronivay
1f7e0d1a75 tidy up plugin installation function 2021-05-03 15:07:39 +03:00
ronivay
3b517d79d9 add checks based on osname AND osversion instead of only latter inside deb dependency installation 2021-05-03 15:02:35 +03:00
ronivay
15cc82ff8a tidy up node update function 2021-05-03 14:58:18 +03:00
ronivay
3757cad406 add option to disable os/arch checks and call package install functions with respective pkg formats instead of distro names 2021-05-03 14:54:07 +03:00
ronivay
a872b79483 get rid of else in updatexo function 2021-05-03 14:23:52 +03:00
ronivay
b290a5335b remove extra step from https check 2021-05-03 14:19:56 +03:00