Kaynağa Gözat

init.d: Remove old compatible code

master
P3TERX 4 yıl önce
ebeveyn
işleme
c86e182667
2 değiştirilmiş dosya ile 0 ekleme ve 10 silme
  1. +0
    -5
      service/aria2_centos
  2. +0
    -5
      service/aria2_debian

+ 0
- 5
service/aria2_centos Dosyayı Görüntüle

@ -28,11 +28,6 @@ Info="[${Green_font_prefix}信息${Font_color_suffix}]"
Error="[${Red_font_prefix}错误${Font_color_suffix}]"
RETVAL=0
[[ ! -e ${CONFIG_DIR} ]] && {
mv /root/.aria2 ${CONFIG_DIR}
sed -i "s@/root/.aria2/@${CONFIG_DIR}/@" ${CONFIG}
}
check_running() {
PID=$(ps -ef | grep "${NAME_BIN}" | grep -v "grep" | grep -v "aria2.sh" | grep -v "init.d" | grep -v "service" | awk '{print $2}')
if [[ ! -z ${PID} ]]; then

+ 0
- 5
service/aria2_debian Dosyayı Görüntüle

@ -26,11 +26,6 @@ Info="[${Green_font_prefix}信息${Font_color_suffix}]"
Error="[${Red_font_prefix}错误${Font_color_suffix}]"
RETVAL=0
[[ ! -e ${CONFIG_DIR} ]] && {
mv /root/.aria2 ${CONFIG_DIR}
sed -i "s@/root/.aria2/@${CONFIG_DIR}/@" ${CONFIG}
}
check_running() {
PID=$(ps -ef | grep "${NAME_BIN}" | grep -v "grep" | grep -v "aria2.sh" | grep -v "init.d" | grep -v "service" | awk '{print $2}')
if [[ ! -z ${PID} ]]; then

Yükleniyor…
İptal
Kaydet