Jeremy Gardais
|
e02b666049
|
Test if MACO_TMP_FILE exists…
|
2021-01-06 13:35:52 +01:00 |
Jeremy Gardais
|
d8c34f6fcc
|
Clean temp files before run maco_upgrade
|
2021-01-06 12:12:55 +01:00 |
Jeremy Gardais
|
5222bdf3e5
|
Maco upgrade temp file is now stored in /opt/maco
|
2021-01-06 12:07:31 +01:00 |
Jeremy Gardais
|
85c4950d6b
|
Check maco status before re-enable SGE queue
|
2021-01-06 11:52:24 +01:00 |
Jeremy Gardais
|
3795fcbeea
|
Reboot after successful upgrade
|
2021-01-06 11:46:19 +01:00 |
Jeremy Gardais
|
c7093dd177
|
Re-add APT_TMP_FILE…
Due to a previous unwanted remove…
Otherwise the SGE queue is re-enable in the hour.
|
2020-12-29 11:40:13 +01:00 |
Jeremy Gardais
|
1595b625cd
|
Let Maco reboot the host with atd
|
2020-12-22 15:42:16 +01:00 |
Jeremy Gardais
|
036975b8fc
|
Fix EMPTY_ONLY_MODE definition
|
2020-12-04 08:36:04 +01:00 |
Jeremy Gardais
|
4e87760e43
|
Add EMPTY_ONLY_MODE (exit if slots not empty)
|
2020-12-03 12:49:55 +01:00 |
Jeremy Gardais
|
06f7dadcd8
|
Remove too complicated tests (attempts, % used slots)
|
2020-12-03 12:38:50 +01:00 |
Jeremy Gardais
|
fc37812f7b
|
Correct size of one line in temp file
|
2020-11-30 17:50:27 +01:00 |
Jeremy Gardais
|
db0b6fcde9
|
Deal with non requested reboot (restart SGE earlier)
Check running processes earlier to restart SGE even after a non
requested reboot (power outage, system crash,…).
|
2020-11-30 16:17:19 +01:00 |
Jeremy Gardais
|
ab742e8295
|
Add possibility to check for urgent upgrade only
|
2020-11-30 15:48:25 +01:00 |
Jeremy Gardais
|
2036f081fe
|
Allow to manage max_attempts with argument (-a,-t)
With -a, --attempt, --attempts, -t or --tries.
|
2020-11-30 15:31:02 +01:00 |
Jeremy Gardais
|
fbe10bda8f
|
Rename days to attempts
If we run X times the script with available upgrade, the SGE queue will
be disabled.
|
2020-11-30 14:45:23 +01:00 |
Jeremy Gardais
|
a18bd2cb96
|
Ensure to enable maco.service before maco's upgrade
|
2020-11-23 17:31:50 +01:00 |
Jeremy Gardais
|
dcbe6c7459
|
Exclude beta version from shaarli monitored release
|
2020-09-25 15:39:54 +02:00 |
Jeremy Gardais
|
62128c89bb
|
Test apt upgrade before all sub-tests
|
2020-09-25 15:08:51 +02:00 |
Jeremy Gardais
|
7c2edce71d
|
If no test succeed, just add content to temp file
|
2020-09-25 13:42:59 +02:00 |
Jeremy Gardais
|
fed34bae66
|
Move some vars def to define_vars function
|
2020-09-25 13:39:27 +02:00 |
Jeremy Gardais
|
7f8947dac9
|
Disable queue if pending upgrade for more than 3 days
|
2020-09-25 13:24:20 +02:00 |
Jeremy Gardais
|
d79c9fe833
|
Disable SGE queue if used slots is EMPTY
|
2020-09-25 11:36:12 +02:00 |
Jeremy Gardais
|
d9beee6e27
|
Disable queue if used slots reach a percentage
|
2020-09-25 10:03:24 +02:00 |
Jeremy Gardais
|
8b7a32ccfb
|
Allow some basics options (-h and -d)
|
2020-09-24 15:18:09 +02:00 |
Jeremy Gardais
|
e35b7af614
|
Disable queue when 0 pending jobs
|
2020-09-24 14:56:27 +02:00 |
Jeremy Gardais
|
c1d23c04f6
|
debug func return 0 to allow chain function
|
2020-08-20 10:02:11 +02:00 |
Jeremy Gardais
|
5a2fb8c13b
|
Cstate new version : Exclude dev|rc version
|
2020-08-18 12:03:16 +02:00 |
Jeremy Gardais
|
821fb4828a
|
Also purge monthly bench for the tests
|
2020-08-18 09:50:47 +02:00 |
Jeremy Gardais
|
f9d3301da7
|
Update script to use nslcd conf instead of sssd
|
2020-08-14 08:09:43 +02:00 |
Jeremy Gardais
|
04a72b1f0d
|
Use os-release to determine Debian version codename
|
2020-08-06 17:00:52 +02:00 |
Jeremy Gardais
|
34db514091
|
Update repositories before upgrading packages
|
2020-07-18 16:28:34 +02:00 |
Jeremy Gardais
|
e74122fb21
|
Start service if process is NOT running…
|
2020-07-13 16:11:41 +02:00 |
Jeremy Gardais
|
ded681aeb9
|
Try to start sge service if required
|
2020-07-06 17:19:07 +02:00 |
Jeremy Gardais
|
7229c8640e
|
Reorder tests and add infos about force mode
|
2020-07-06 17:05:06 +02:00 |
Jeremy Gardais
|
d5186390b3
|
Correct exit condition if sge_flag_pattern s absent
|
2020-07-06 16:37:30 +02:00 |
Jeremy Gardais
|
8e8c60c405
|
Ensure to clean useless files
|
2020-07-06 16:26:55 +02:00 |
Jeremy Gardais
|
46ceeb5baf
|
Use same var prefix "sge_queue_flag"
|
2020-07-06 16:19:11 +02:00 |
Jeremy Gardais
|
fdbc34e5cc
|
Exit if all SGE queues were manually disabled
|
2020-07-06 16:16:25 +02:00 |
Jeremy Gardais
|
47d7060743
|
find allow to use pattern to verify if file exists
|
2020-07-06 15:30:32 +02:00 |
Jeremy Gardais
|
df39d103e6
|
Exit if nologin file exists
|
2020-07-06 15:07:23 +02:00 |
Jeremy Gardais
|
f765e15c7f
|
Avoid to enable queue during upgrade
|
2020-07-06 11:30:24 +02:00 |
Jeremy Gardais
|
588dc554ef
|
Ensure maco.service is enable for next reboot
|
2020-07-06 08:29:13 +02:00 |
Jeremy Gardais
|
e303c9fd17
|
Check Searx version from version.py
|
2020-07-01 13:20:47 +02:00 |
Jeremy Gardais
|
9ed62204ae
|
Add info about -q|--quiet option
|
2020-06-29 09:19:03 +02:00 |
Jeremy Gardais
|
b13eaf3564
|
Remove APT warning
|
2020-06-25 08:50:17 +02:00 |
Jeremy Gardais
|
dc271d73ee
|
Disable DEBUG_MODE
|
2020-06-24 16:03:33 +02:00 |
Jeremy Gardais
|
b7a369ae90
|
Don't manage files with SIMULATE_MODE enabled
|
2020-06-24 15:54:53 +02:00 |
Jeremy Gardais
|
1c6a8fcbc6
|
Create a file in /opt/ipr/cluster instead of /etc
|
2020-06-24 14:56:04 +02:00 |
Jeremy Gardais
|
e96c9ff548
|
Test if given hostname is the current host
|
2020-06-24 14:53:53 +02:00 |
Jeremy Gardais
|
3d6d8de497
|
Define vars in a function
|
2020-06-24 14:14:08 +02:00 |