From 52e05aae3367b3658f7c28de62f79f5b1a974916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Sch=C3=A4ferdiek?= Date: Fri, 25 Jan 2019 18:52:06 +0100 Subject: [PATCH] Rename reserved name --- .../{checkupdates.service => check_updates.service} | 4 ++-- .../{checkupdates.timer => check_updates.timer} | 2 +- usr/local/bin/{checkupdates => check_updates} | 12 ++++++------ .../.check_updates.conf.example} | 0 4 files changed, 9 insertions(+), 9 deletions(-) rename etc/systemd/system/{checkupdates.service => check_updates.service} (56%) rename etc/systemd/system/{checkupdates.timer => check_updates.timer} (76%) rename usr/local/bin/{checkupdates => check_updates} (74%) rename usr/share/doc/{checkupdates/.checkupdates.conf.example => check_updates/.check_updates.conf.example} (100%) diff --git a/etc/systemd/system/checkupdates.service b/etc/systemd/system/check_updates.service similarity index 56% rename from etc/systemd/system/checkupdates.service rename to etc/systemd/system/check_updates.service index 7f5f284..15ef43a 100644 --- a/etc/systemd/system/checkupdates.service +++ b/etc/systemd/system/check_updates.service @@ -1,9 +1,9 @@ [Unit] -Description=Run checkupdates +Description=Run check_updates [Service] Type=oneshot -ExecStart=checkupdates +ExecStart=check_updates [Install] WantedBy=multi-user.target diff --git a/etc/systemd/system/checkupdates.timer b/etc/systemd/system/check_updates.timer similarity index 76% rename from etc/systemd/system/checkupdates.timer rename to etc/systemd/system/check_updates.timer index e14cdf9..37e3b37 100644 --- a/etc/systemd/system/checkupdates.timer +++ b/etc/systemd/system/check_updates.timer @@ -1,5 +1,5 @@ [Unit] -Description=Run checkupdates +Description=Run check_updates [Timer] OnCalendar=Mon *-*-* 05:00:00 diff --git a/usr/local/bin/checkupdates b/usr/local/bin/check_updates similarity index 74% rename from usr/local/bin/checkupdates rename to usr/local/bin/check_updates index a5c3a85..25be687 100755 --- a/usr/local/bin/checkupdates +++ b/usr/local/bin/check_updates @@ -3,15 +3,15 @@ # usage usage() { USAGE=$(cat <'. EOF @@ -24,7 +24,7 @@ set -e; HOSTNAME=$(hostname) UPDATES=$(checkupdates) UPDATES_AMOUNT=$(checkupdates|wc -l) -CHECKUPDATES_MAIL_ADDRESS=""; +CHECK_UPDATES_MAIL_ADDRESS=""; # check for config file source_config() { @@ -46,10 +46,10 @@ source_config() { source "$config"; set +a; } -source_config "$1" "$HOME/.checkupdates.conf" +source_config "$1" "$HOME/.check_updates.conf" if [ "$UPDATES_AMOUNT" -gt "0" ]; then - mailx -s "[updates $HOSTNAME]" $CHECKUPDATES_MAIL_ADDRESS << EOF + mailx -s "[updates $HOSTNAME]" $CHECK_UPDATES_MAIL_ADDRESS << EOF There are $UPDATES_AMOUNT updates available on $HOSTNAME. $UPDATES diff --git a/usr/share/doc/checkupdates/.checkupdates.conf.example b/usr/share/doc/check_updates/.check_updates.conf.example similarity index 100% rename from usr/share/doc/checkupdates/.checkupdates.conf.example rename to usr/share/doc/check_updates/.check_updates.conf.example