Refactor deployment script and replace RNGCryptoServiceProvider
Some checks failed
Build .NET Project / build (push) Has been cancelled

This commit is contained in:
2026-03-13 18:04:52 -04:00
parent b87dea3473
commit e2331010f1
4 changed files with 68 additions and 17 deletions

View File

@@ -11,8 +11,10 @@
# set xtrace if you want to see trace level
#set -o xtrace
sudo service cron stop
sudo service cron status
# use systemctl so we can bypass the pager
sudo systemctl --no-pager stop cron
sudo systemctl --no-pager status cron
# The name of the MK process that we will need to ensure is not running during the deployment
PROCESS_NAME="mk"
@@ -74,7 +76,8 @@ done
# Check if source directory exists
if [ ! -d "$SOURCE_DIR" ]; then
echo "Error: Source directory '$SOURCE_DIR' not found."
sudo service cron restart
# use systemctl so we can bypass the pager prompts
sudo systemctl --no-pager restart cron
exit 1
fi
@@ -122,8 +125,9 @@ echo ""
echo "Files copied from '$SOURCE_DIR' to '$DEST_DIR'."
sudo service cron restart
sudo service cron status
# use systemctl so we can bypass the pager prompts
sudo systemctl --no-pager restart cron
sudo systemctl --no-pager status cron
echo "Done."