mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-14 12:57:00 +05:30
Decomission stats.msfjarvis.dev
This will always be inaccurate due to Cloudflare caching and hence not actually doing origin pulls Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
943b398f14
commit
bacb70c38f
5 changed files with 1 additions and 74 deletions
|
@ -8,8 +8,7 @@ function prettyPrint() {
|
|||
}
|
||||
|
||||
# Grab all service names
|
||||
declare -a services=('caddy' 'goaccess' 'mirror-bot' 'mirror-bot-2' 'uno-bot' 'pyrobud' 'walls-bot' 'walls-bot-rs')
|
||||
declare -a timers=('goaccess-update')
|
||||
declare -a services=('caddy' 'mirror-bot' 'mirror-bot-2' 'uno-bot' 'pyrobud' 'walls-bot' 'walls-bot-rs')
|
||||
|
||||
# Now loop through each service and install it
|
||||
for service in "${services[@]}"; do
|
||||
|
@ -30,18 +29,3 @@ for service in "${services[@]}"; do
|
|||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
for timer in "${timers[@]}"; do
|
||||
if [ "${1}" ] && [[ ${timer} != "${1}" && "${timer}.timer" != "${1}" ]]; then
|
||||
continue
|
||||
fi
|
||||
prettyPrint "Checking root access"
|
||||
sudo -v || return 1
|
||||
prettyPrint "Installing ${timer}"
|
||||
sudo cp -v "${timer}.timer" /etc/systemd/system/
|
||||
sudo systemctl daemon-reload
|
||||
if [ -z "${NO_RESTART}" ]; then
|
||||
prettyPrint "Enabling ${timer}"
|
||||
sudo systemctl enable "${timer}.timer"
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue