Commit Graph

208 Commits

Author SHA1 Message Date
Roni Väyrynen
629365ca1d fix to prevent writing xo-proxy config to wrong users directory when xouser is set in configuration 2022-01-30 14:07:36 +02:00
Roni Väyrynen
8a65dc0ee2 change systemd config file edit/activate order to make more sense 2022-01-30 13:58:08 +02:00
Roni Väyrynen
c6a9f0cb9a reference the actual logfile in case of error instead of vaguely mentioning logs 2022-01-30 13:19:59 +02:00
Roni Väyrynen
ca1c105210 add ntfs-3g package installation 2022-01-30 11:33:37 +02:00
Roni Väyrynen
1554c0c0a0 chore: fix typoed variable names in installation cleanup 2022-01-02 12:09:27 +02:00
Roni Väyrynen
20de902f10 chore: add some details to menu output about proxy configuration 2022-01-02 11:57:02 +02:00
Roni Väyrynen
13cd3ceec9 chore: deal with cleanup situation where there might be proxy and xen orchestra installed on same server. we only want to remove inactive installations 2022-01-02 11:54:37 +02:00
Roni Väyrynen
4f4e277c7f fix: do not print config json when installing if config already exists 2022-01-01 20:54:15 +02:00
Roni Väyrynen
03abc1d1f8 styling: fix shfmt issues 2022-01-01 19:09:31 +02:00
Roni Väyrynen
f9037cf0a2 feat: add possibility to deploy/update backup proxy 2022-01-01 19:03:39 +02:00
Roni Väyrynen
a7ecc106ff check that user is not root before adding useSudo settings to xo-server config 2021-12-06 16:26:06 +02:00
Roni Väyrynen
1a8405707b set configpath again after creating optional non privileged user so variable is not left empty 2021-12-06 13:55:40 +02:00
Roni Väyrynen
a8a960a9ed fix wrong indent 2021-12-06 13:53:44 +02:00
Roni Väyrynen
820581cad0 add option to use sudo with non privileged user 2021-12-06 13:49:26 +02:00
Roni Väyrynen
c08c6b17a2 move epel repo position and fix existence check 2021-11-23 19:36:38 +02:00
Roni Väyrynen
4c9f1124b1 add check that prevents xo-install.sh to be ran on official XOA VM 2021-09-15 11:55:20 +03:00
Roni Väyrynen
c0849b5eaa add check for git binary and local changes to self upgrade 2021-09-15 11:48:40 +03:00
Roni Väyrynen
ca139df4c9 add mention to self upgrade that current version is being used if update fails 2021-09-12 11:11:26 +03:00
Roni Väyrynen
c94dba3ea6 remove obsolete conditional user print in menu 2021-09-12 11:08:39 +03:00
Roni Väyrynen
2187e86e43 add version details to selfupgrade and fix earlier lint error 2021-09-11 16:52:06 +03:00
Roni Väyrynen
ca424d0b63 add autocert config option to automatically create cert/key if they're defined but files don't exist 2021-09-11 16:45:32 +03:00
Roni Väyrynen
b977ff2ae3 remove obsolete https redirect config setting. fixes #93 2021-09-04 22:38:52 +03:00
ronivay
0a6839e2ea change selfupgrade/scriptinfo function names consistent with others 2021-08-24 09:18:13 +03:00
ronivay
8bd090aada change indentation from tabs to spaces and couple other minor suggestions by shfmt 2021-08-24 08:57:15 +03:00
ronivay
03f5ad9d10 implement self upgrade to the script 2021-08-23 16:20:32 +03:00
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