Commit Graph
63094 Commits
Author SHA1 Message Date
Thomas Stokes ffdf0f7f2f b5912: Copy awstats database across. 2024-05-19 22:52:54 +02:00
Thomas Stokes 595b400b08 Merge branch 'master' into bug5912 2024-05-17 14:24:01 +02:00
Thomas Stokes 68a151163a b5938: Improve sshd resilience to work on any user with sudo permissions. 2024-05-17 14:10:44 +02:00
Thomas Stokes ff223f40d8 b5912: Add insightful echo statement. 2024-05-17 14:03:00 +02:00
Thomas Stokes 835f476b03 b5912: Add setup_swap to imageupgrade functions. 2024-05-17 14:02:30 +02:00
Thomas Stokes f612608eda b5938: only append key if it doesn't already exist in the authorized keys. 2024-05-17 10:56:50 +02:00
Thomas Stokes ae01d0a918 b5912: Fix formatting and move setup keys to part 2, making use of the new -p option to disable permission setting.
This is vital for the trac user.
2024-05-16 19:22:57 +02:00
Thomas S b5d700159b b5912: Make build_crontab_.... in imageupgrade_functions.sh sudo capable 2024-05-16 13:35:37 +00:00
Thomas Stokes 6a332031a8 Merge branch 'master' into bug5912 2024-05-16 13:33:32 +02:00
Thomas Stokes 5818c64cb6 Move from iteration of find approach to wildcard patterns approach.
Used in the case that there are no service unit files.
2024-05-16 13:32:41 +02:00
Thomas Stokes 445ae472db b5912: Return instead of exit. 2024-05-14 17:22:02 +02:00
Thomas Stokes 1fad02d65f b5912: Add optional permission/ownership settings to setup_keys. 2024-05-14 17:21:44 +02:00
Thomas Stokes c3a8ab54c1 b5912: Only copy keys if they don't already exist, so we never ireparably overwrite existing keys. 2024-05-14 16:13:06 +02:00
Thomas Stokes 1e6810ea58 b5912: Exit setup if the build crontab stage fails. 2024-05-14 16:09:31 +02:00
Thomas Stokes 080ea20e07 b5912: Add insightful echo statement. 2024-05-14 00:09:55 +02:00
Thomas Stokes 538ed6d45c b5912: Add status check after the major SSH blocks, so that if a major error occurs, then the program does not continue.
This increases the chances of diagnosing the issue and being able to continue with the setup, without starting from scratch.
2024-05-14 00:09:23 +02:00
Thomas Stokes 2316f97c25 b5912: Copy icons and error documents across. 2024-05-14 00:06:57 +02:00
Thomas Stokes 4328b0db96 b5912: Improve clarity of msg and add keyboard press to continue. 2024-05-14 00:05:55 +02:00
Thomas Stokes 291a0e2b62 b5912: Alter when params.json is copied and log the bugzilla module install to a separate file.
Params.json's parent directory is created by the checksetup script, so must be run afterwards to overwrite the setup.
2024-05-14 00:04:50 +02:00
Thomas Stokes 2aa3d04164 b5912: Copy ssh directory and perform sshd check before restarting the sshd. 2024-05-14 00:01:27 +02:00
Thomas Stokes 067a47b475 b5912: Add timeout equal to DNS timeout to the "part 3" script which is run locally. 2024-05-14 00:00:36 +02:00
Axel Uhl be5b67e83e use sapmachine-17.0.11 Docker image, upgrading from 17.0.10 2024-05-13 23:06:40 +02:00
Axel Uhl 9cecba2e64 login to ghcr.io, too, using github.actor and secret.GITHUB_TOKEN 2024-05-13 22:38:20 +02:00
Axel Uhl 9aa86abaf0 updated play-with-docker.yml such that download of sapjvm8 image from docker.sapsailing.com is possible 2024-05-13 22:30:26 +02:00
Axel Uhl 8b4c1931de don't log in explicitly to ghcr.io; repo's actions should implicitly have access 2024-05-13 22:25:43 +02:00
Axel Uhl e316ae4931 fixed step name in play-with-docker.yml workflow 2024-05-13 22:23:35 +02:00
Axel Uhl bc2267e35a Merge remote-tracking branch 'github/main' 2024-05-13 22:19:12 +02:00
Axel Uhl 38ee66b7d2 trying to switch play-with-docker.yml to ghcr.io 2024-05-13 22:18:47 +02:00
Thomas Stokes 9e3720b5ba b5912: add additional exits for incorrect args and if each block passed over ssh fails. 2024-05-13 16:14:30 +02:00
Thomas Stokes d51e2817df b5912: initiate exit if build crontab fails. 2024-05-13 16:13:27 +02:00
Thomas Stokes fa5e1e86b1 b5912: COmment, disable stricthostchecking and silent curl. 2024-05-13 15:34:32 +02:00
Thomas Stokes b76a5a8281 b5912: Improve build_crontab... in image upgrade functions to use an optional -h as hostname. 2024-05-13 15:17:07 +02:00
Thomas Stokes 9fe9840581 b5912: Fix max 20 resources for describe tags issue. 2024-05-13 14:03:52 +02:00
Axel Uhl a057214453 only considwr completed workflow runs 2024-05-10 18:09:20 +02:00
Thomas Stokes 9065928978 b5912: Add setup_swap to imageupgrade functions. 2024-05-10 12:40:15 +02:00
Thomas Stokes cf6106e097 b5912: Fix issue with different tags. Remove umount for /var/log/old on sailing servers (as they don't have this mount). 2024-05-10 12:17:58 +02:00
Axel Uhl 8ee410845a exit with 1 if Github actions workflow did not conclude with "success" 2024-05-09 21:37:42 +02:00
Thomas Stokes dd11d7b3e6 b5912: Add additional modules needed for email sending to bugzilla. 2024-05-09 18:09:50 +02:00
Thomas Stokes c9e67c7d1c Remove unneeded source command and modify bugzilla notification. 2024-05-09 17:42:30 +02:00
Thomas Stokes da9266cebe Tidy comments at the end of part 1 central setup script. 2024-05-09 17:37:46 +02:00
Thomas Stokes b36b12ea8c Enable docker and start immediately. Remove /var/log mount from /etc/fstab 2024-05-09 17:34:12 +02:00
Thomas Stokes de2208ec13 Goaccess config location change on amazon linux 2023 2024-05-09 17:33:08 +02:00
Thomas Stokes 3eb6764b58 Stdout and stderror go straight to the terminal and are not logged. The bugzilla module installation is muted though as it clutters the log history. 2024-05-09 17:32:12 +02:00
Thomas Stokes cd74c32b2d Merge branch 'master' of ssh://sapsailing.com/home/trac/git 2024-05-09 17:25:44 +02:00
Thomas S a727e00963 Remove init.d symlink, which caused failed download message 2024-05-09 15:25:35 +00:00
Thomas Stokes 6b24956a4e Merge branch 'master' of ssh://sapsailing.com/home/trac/git 2024-05-09 17:21:58 +02:00
Thomas Stokes 6fe1a9975f b5912: Correct variable used for local ip in batch for route53. 2024-05-09 16:59:49 +02:00
Generic Wiki User 1302f35da6 Updated tractrac-json-urls 2024-05-09 12:10:01 +00:00
Thomas Stokes d23b4285b5 Remove test (service unit running) 2024-05-09 11:52:59 +00:00
Thomas Stokes 41726e008c Add test again 2024-05-09 11:46:28 +00:00