From 1dfa69060176a2186117140a30c63a23b3b2fc3d Mon Sep 17 00:00:00 2001 From: sdjnmxd Date: Mon, 10 Apr 2017 01:37:12 +0800 Subject: [PATCH 1/2] fix permissions. I DONT THINK * IS A GOOD IDEA --- aria2/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aria2/install.sh b/aria2/install.sh index bcf29bc..faa14ba 100755 --- a/aria2/install.sh +++ b/aria2/install.sh @@ -32,7 +32,7 @@ if [ -d /koolshare/www ];then fi chmod 755 /koolshare/aria2/* -chmod 755 /koolshare/init.d/* +chmod 755 /koolshare/init.d/S91aria2.sh chmod 755 /koolshare/scripts/aria2* chmod 755 /koolshare/perp/aria2/* From b33e7a4aeaa1c8f7ae45bbff4044e596a1346396 Mon Sep 17 00:00:00 2001 From: sdjnmxd Date: Mon, 10 Apr 2017 01:42:34 +0800 Subject: [PATCH 2/2] fix some file can not be uninstalled --- aria2/uninstall.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/aria2/uninstall.sh b/aria2/uninstall.sh index 6f9635e..ea7aa86 100644 --- a/aria2/uninstall.sh +++ b/aria2/uninstall.sh @@ -1,8 +1,15 @@ -#!/bin/sh +#! /bin/sh sh /koolshare/aria2/aria2_run.sh stop + rm -rf /koolshare/aria2 -rm -rf /perp/aria2 -rm -rf /koolshare/scripts/aria2_config.sh -rm -rf /webs/Module_thunder.asp +rm -rf /koolshare/scripts/aria2* +rm -rf /koolshare/webs/Module_aria2.asp +rm -rf /koolshare/www +rm -rf /koolshare/pere/aria2 +rm -rf /koolshare/uninstall_aria2.sh +for r in `dbus list aria2|cut -d"=" -f 1` +do + dbus remove $r +done \ No newline at end of file