Making hooks executable after fetching them.
authorDaniel Baumann <daniel@debian.org>
Thu, 6 Mar 2008 07:14:12 +0000 (08:14 +0100)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:31:06 +0000 (17:31 +0100)
scripts/live-bottom/99hook

index 0341026..dd027ab 100755 (executable)
@@ -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