支持rhel衍生的常用os定时任务路径rocky/almalinux/openEuler,debian/ubuntu保持不变
This commit is contained in:
1 parent
486e7702de
commit
19b84d2f16
1 file changed
+1
-1
+1
-1
@@ -62,7 +62,7 @@ _set_var() {
|
||||
|
||||
# 定时任务路径
|
||||
local os_info=$(cat /etc/os-release)
|
||||
echo "$os_info" | grep -iqsE "rhel|centos" && CLASH_CRON_TAB="/var/spool/cron/$user"
|
||||
echo "$os_info" | grep -iqsE "rhel|centos|openEuler|Rocky|AlmaLinux" && CLASH_CRON_TAB="/var/spool/cron/$user"
|
||||
echo "$os_info" | grep -iqsE "debian|ubuntu" && CLASH_CRON_TAB="/var/spool/cron/crontabs/$user"
|
||||
}
|
||||
_set_var
|
||||
|
||||
Reference in new issue
Block a user