Skip to content

Commit

Permalink
Added install finished script
Browse files Browse the repository at this point in the history
  • Loading branch information
kobaltz committed Feb 9, 2024
1 parent 8a06cf7 commit abb791b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions app/controllers/mission_control/servers/scripts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,25 @@ def script_content
cron_job="* * * * * $(pwd)/metrics.sh"
(crontab -l 2>/dev/null | grep -v -F "$cron_job"; echo "$cron_job") | crontab -
echo
echo "████████████████████████████████████████████████████████████████████████████"
echo "█ █"
echo "█ ██╗███╗ ██╗███████╗████████╗ █████╗ ██╗ ██╗ ███████╗██████╗ █"
echo "█ ██║████╗ ██║██╔════╝╚══██╔══╝██╔══██╗██║ ██║ ██╔════╝██╔══██╗ █"
echo "█ ██║██╔██╗ ██║███████╗ ██║ ███████║██║ ██║ █████╗ ██║ ██║ █"
echo "█ ██║██║╚██╗██║╚════██║ ██║ ██╔══██║██║ ██║ ██╔══╝ ██║ ██║ █"
echo "█ ██║██║ ╚████║███████║ ██║ ██║ ██║███████╗███████╗███████╗██████╔╝ █"
echo "█ ╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝╚═════╝ █"
echo "█ █"
echo "█ Metrics script installed and scheduled to run every minute. █"
echo "█ This script is idempotent and can be run multiple times. █"
echo "█ █"
echo "█ To uninstall, remove the cron job (crontab -e) and █"
echo "█ delete the metrics.sh file. █"
echo "█ █"
echo "████████████████████████████████████████████████████████████████████████████"
SCRIPT
end
end
Expand Down

0 comments on commit abb791b

Please sign in to comment.