Merge branch 'release-2.140.124' master 2.140.124
authorChris Koeritz <fred@gruntose.com>
Thu, 9 Jul 2020 02:31:06 +0000 (22:31 -0400)
committerChris Koeritz <fred@gruntose.com>
Thu, 9 Jul 2020 02:31:06 +0000 (22:31 -0400)
infobase/configuration/cron/letsencrypt_renewal.crontab
infobase/fortunes.dat
production/feisty_meow_config.ini
scripts/system/moodle_updater.sh

index 450f08b29cbedecb5cb7f8e51477b4003d8d3590..90df89b52355f9555de4d39f0f723dcf5e33fe56 100644 (file)
@@ -3,7 +3,9 @@
 
 #[letsencrypt renewal]
 # run the letsencrypt certificate renewal process every 4 hours.
-37 */4 * * * letsencrypt renew &>>/tmp/${CRONUSER}-cron-letsencrypt_renewal.log 
+# fixing issues in renewal by setting PATH.
+PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+37 */4 * * * (date ; letsencrypt renew) &>> /tmp/${CRONUSER}-cron-letsencrypt_renewal.txt
 
 ##############
 
index 15e635f34b6b9165344f0f2b97e7ffddb6307673..71fece5e029c2cae2555eddde53307ba03f5b84d 100644 (file)
@@ -2695,14 +2695,6 @@ it's a depression when you lose yours.
 Whenever you have an efficient government you have a dictatorship.
   -- Harry S. Truman, 1959
 ~
-A little more moderation would be good.  Of course,
-my life hasn't exactly been one of moderation.
-  -- Donald Trump, in "Time", 16 January 1989
-~
-I like thinking big.  If you're going to be thinking
-anything, you might as well think big.
-  -- Donald Trump, in "Time", 16 January 1989
-~
 The more laws and order are made prominent,
 the more thieves and robbers there will be.
   -- Lao Tsu
index 3a77540b4bd95cd3baeda272753f90b50b0872b5..140f89f62f00248002c0e48a6b8376ed34160574 100644 (file)
@@ -3,7 +3,7 @@
 # specifies the version of the code that is being constructed here.
 major=2
 minor=140
-revision=123
+revision=124
 build=420
 
 # specifies the remainder of the version record info.
index 676b8a1eeea091c211c2fc384c306aa4feb46801..3faa6e729e004fe12d4e64d4ef6317935df3a745 100644 (file)
@@ -14,6 +14,7 @@ moodle_release=moodle-3.9
   # the name of the release we're expecting to download and install
 download_url="https://download.moodle.org/download.php/direct/stable39/${moodle_release}.tgz"
   # where we can get the latest version of moodle for our chosen releases.
+  # this URL could change over time, but it's the best link i could find for now.
 ####
 
 # everything below should be version invariant.
@@ -28,25 +29,27 @@ fi
 
 # where we unpack our temporary stuff.
 temp_install="$(mktemp -d /tmp/update_moodle.XXXXXX)"
-#echo temp install dir is: $temp_install
+echo "Using temporary directory for installation: $temp_install"
 if [ ! -d "$temp_install" ]; then
   echo The temporary installation directory at: $temp_install could not be created.
   exit 1
 fi
 
 # quit the running moodle instance.
+echo "Stopping Apache httpd before moodle update."
 systemctl stop httpd
 exit_on_error stopping httpd process before moodle upgrade.
 
 # jump into our new work area.
 pushd "$temp_install"
 
-# get the latest moodle version.  this could change over time,
-# but it's the best link i could find.
+# get the latest moodle version.
+echo "Downloading latest version of '$moodle_release' now."
 wget "$download_url"
 exit_on_error downloading latest version of moodle.
 
 # use the feisty meow unpack script to extract the moodle data.
+echo "Installing the latest $moodle_release now."
 unpack "${moodle_release}.tgz"
 exit_on_error unpacking latest version of moodle.
 
@@ -56,13 +59,14 @@ mv "$moodle_parent/$moodle_dir" "$old_moodle_path"
 exit_on_error renaming old version of moodle.
 
 # move the new stuff into place.
-mv "${moodle_release}/$moodle_dir" "$moodle_parent"/
+mv "arch_${moodle_release}/${moodle_dir}" "$moodle_parent"/ &>/dev/null
 exit_on_error moving new version of moodle into place.
 
 # grab our important configuration files and put them back in the new directory.
 cp "$old_moodle_path/config.php" "$moodle_path"
 exit_on_error copying existing moodle configuration file: config.php
 
+# legalesey warnings about what we didn't do...
 echo -e "\
 ====
 NOTE: This script does not copy any plugins or themes.  If you are using\n\
@@ -74,8 +78,13 @@ into the new install at:\n\
 "
 
 # restart the running moodle instance.
-systemctl stop httpd
+echo "Starting Apache httpd after moodle update."
+systemctl start httpd
 exit_on_error starting httpd process after moodle upgrade.
 
+# back out of our directory and clean up the temporary junk, if any.
+popd
+rm -rf "$temp_install"
+
 # sunshine and roses!  we are through the gauntlet.