From 0a8b96fdc1ada7bfc65c1949893f8140b3ef2b28 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 6 Mar 2008 08:14:12 +0100 Subject: Making hooks executable after fetching them. --- scripts/live-bottom/99hook | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/live-bottom/99hook b/scripts/live-bottom/99hook index 0341026..dd027ab 100755 --- a/scripts/live-bottom/99hook +++ b/scripts/live-bottom/99hook @@ -34,6 +34,10 @@ log_begin_msg "Executing custom hook script..." cd /root wget "${HOOK}" -./$(basename ${HOOK}) +FILE="$(basename ${HOOK})" + +chmod 0755 "${FILE}" +./"${FILE}" +rm -f "${FILE}" log_end_msg -- cgit v1.2.3