Skip to content

Commit

Permalink
Version 2.4.5: Optimize script update mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
P3TERX committed May 21, 2020
1 parent b6fdff8 commit 18574f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aria2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
# https://github.com/P3TERX/aria2.sh
# Description: Aria2 One-click installation management script
# System Required: CentOS/Debian/Ubuntu
# Version: 2.4.4
# Version: 2.4.5
# Author: Toyo
# Maintainer: P3TERX
# Blog: https://p3terx.com
#=============================================================

sh_ver="2.4.4"
sh_ver="2.4.5"
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
aria2_conf_path="/root/.aria2"
Expand Down Expand Up @@ -661,6 +661,7 @@ Update_Shell() {
if [[ -e "/etc/init.d/aria2" ]]; then
rm -rf /etc/init.d/aria2
Service_aria2
Restart_aria2
fi
if [[ -n $(crontab_update_status) ]]; then
crontab_update_stop
Expand Down

0 comments on commit 18574f9

Please sign in to comment.